Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
LAE
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
文靖昊
LAE
Commits
74300011
Commit
74300011
authored
7 months ago
by
tinywell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正日志信息中的区域标识符,从 key 更改为 code,以提高设备信息查询的准确性
parent
44bdb2dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
tool_monitor.py
src/agent/tool_monitor.py
+1
-1
No files found.
src/agent/tool_monitor.py
View file @
74300011
...
...
@@ -100,7 +100,7 @@ class MonitorPointTool(BaseTool):
return
self
.
_get_points_info
(
code
,
year
,
disaster_type
,
three_d_model
,
ortho_image
,
disaster_threat_people_range_start
,
disaster_threat_people_range_end
,
disaster_scale_start
,
disaster_scale_end
,
warn_level
,
device_type
)
def
_get_device_info
(
self
,
code
:
str
,
start_time
:
str
=
""
,
end_time
:
str
=
""
,
device_type
:
str
=
""
):
self
.
logger
.
info
(
f
"开始查询设备信息,区域: {
key
}"
)
self
.
logger
.
info
(
f
"开始查询设备信息,区域: {
code
}"
)
try
:
response
=
self
.
client
.
query_device_and_sensor
(
code
,
start_time
,
end_time
,
device_type
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment