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
7413f4dc
Commit
7413f4dc
authored
Jun 14, 2023
by
ZZH
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix homepage2023-6-14
parent
5293d287
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
count_info_pds.py
unify_api/modules/home_page/procedures/count_info_pds.py
+1
-1
No files found.
unify_api/modules/home_page/procedures/count_info_pds.py
View file @
7413f4dc
...
...
@@ -364,7 +364,7 @@ async def cal_power_factor(cid):
electric_sql
=
f
"SELECT pid,create_time,pttl_mean,qttl_mean FROM "
\
f
"`point_15min_electric` where create_time in "
\
f
"('{str_dt}', '{end_dt}') and pid in
%
s"
results
=
await
conn
.
fetchall
(
electric_sql
,
args
=
(
point_ids
,))
results
=
await
conn
.
fetchall
(
electric_sql
,
args
=
(
tuple
(
point_ids
)
,))
point_map
=
{}
for
res
in
results
:
point_map
.
setdefault
(
res
[
"pid"
],
[])
.
append
(
...
...
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