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
6348a28e
Commit
6348a28e
authored
Jun 16, 2023
by
ZZH
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix temp rc qr 2023-6-16
parent
a6e4d703
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
td_engine_service.py
unify_api/modules/common/service/td_engine_service.py
+1
-1
count_info_pds.py
unify_api/modules/home_page/procedures/count_info_pds.py
+4
-2
No files found.
unify_api/modules/common/service/td_engine_service.py
View file @
6348a28e
...
...
@@ -11,7 +11,7 @@ async def get_td_engine_data(url, sql):
url
,
data
=
sql
,
timeout
=
50
,
headers
=
{
"Authorization"
:
f
"Basic {token}"
}
)
log
.
info
(
f
"resp_str:{resp_str},status:{status}"
)
#
log.info(f"resp_str:{resp_str},status:{status}")
if
status
!=
200
:
return
False
,
None
results
=
json
.
loads
(
resp_str
)
...
...
unify_api/modules/home_page/procedures/count_info_pds.py
View file @
6348a28e
...
...
@@ -142,8 +142,10 @@ async def normal_rate_of_location(cid):
lids
=
list
(
location_map
.
keys
())
adio_currents
=
[]
if
lids
:
key
=
f
"real_time:adio:{SETTING.mysql_db}"
adio_currents
=
await
RedisUtils
()
.
hmget
(
key
,
*
lids
)
prefix
=
f
"real_time:adio:{SETTING.mysql_db}"
keys
=
[
f
"{prefix}:{lid}"
for
lid
in
lids
]
adio_currents
=
await
RedisUtils
()
.
mget
(
keys
)
log
.
info
(
f
"adio_currents:{adio_currents}"
)
adio_infos
=
{}
for
index
,
item_byte
in
enumerate
(
adio_currents
):
...
...
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