Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
U
unify_api2
Project
Project
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
chaonan
unify_api2
Commits
bba96b1a
Commit
bba96b1a
authored
May 11, 2023
by
peng.xiaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style:注释优化
parent
521761f1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
scope_operations_pds.py
...y_api/modules/zhiwei_u/procedures/scope_operations_pds.py
+1
-1
scope_operations_service.py
..._api/modules/zhiwei_u/service/scope_operations_service.py
+0
-2
No files found.
unify_api/modules/zhiwei_u/procedures/scope_operations_pds.py
View file @
bba96b1a
...
...
@@ -16,7 +16,7 @@ async def get_event_info_by_event_id(event_id):
async
def
get_scope_info_pds
(
mtid
,
create_time
):
"""获取
报警西南西
"""
"""获取
录波报警信息
"""
sql
=
f
"""
SELECT
fault_type, create_time datetime, index_loc result, url context_url
...
...
unify_api/modules/zhiwei_u/service/scope_operations_service.py
View file @
bba96b1a
...
...
@@ -169,8 +169,6 @@ async def scope_detail_service(id, wave_range, download=None, user_id=None):
source
=
mysql_results
scope_type
=
source
.
get
(
"fault_type"
)
fault_type
=
config
.
EVENT_TYPE_MAP
.
get
(
scope_type
)
# date_time = time_format.esstr_to_dtstr(
# source.get("datetime"))
date_time
=
datetime
.
datetime
.
strftime
(
source
.
get
(
"datetime"
),
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
)
position
=
list
(
json
.
loads
(
source
.
get
(
"result"
))
.
keys
())
position_tmp
=
[
...
...
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