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
faf23a43
Commit
faf23a43
authored
May 30, 2023
by
ZZH
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix business meter parse
parent
b127e317
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
158 deletions
+21
-158
count_info_pds.py
unify_api/modules/home_page/procedures/count_info_pds.py
+19
-154
count_info.py
unify_api/modules/home_page/views/count_info.py
+2
-4
No files found.
unify_api/modules/home_page/procedures/count_info_pds.py
View file @
faf23a43
This diff is collapsed.
Click to expand it.
unify_api/modules/home_page/views/count_info.py
View file @
faf23a43
...
@@ -19,12 +19,10 @@ from unify_api.modules.home_page.components.count_info_proxy_cps import \
...
@@ -19,12 +19,10 @@ from unify_api.modules.home_page.components.count_info_proxy_cps import \
CountInfoProxyResp
,
IycResp
,
IycmResp
,
RtrResp
,
CmResp
,
ApcResp
,
AsiResp
,
\
CountInfoProxyResp
,
IycResp
,
IycmResp
,
RtrResp
,
CmResp
,
ApcResp
,
AsiResp
,
\
HsiResp
,
AiiResp
HsiResp
,
AiiResp
from
unify_api.modules.home_page.procedures.count_info_pds
import
(
from
unify_api.modules.home_page.procedures.count_info_pds
import
(
get_max_aiao_of_filed
,
get_max_aiao_of_filed
,
normal_rate_of_location
,
normal_rate_of_location
,
normal_rate_of_location_new15
,
other_info
,
other_info_new15
,
other_info
,
other_info_new15
,
power_count_info
,
power_count_info
,
electric_use_info
,
electric_use_info
,
datetime_to_timestamp
,
power_charge_price
,
power_charge_price
,
cal_power_factor
,
cal_power_factor
,
optimization_count_info
,
optimization_count_info_new
optimization_count_info
,
optimization_count_info_new
...
@@ -59,7 +57,7 @@ async def post_count_info(request, body: CountInfoReq) -> CountInfoResp:
...
@@ -59,7 +57,7 @@ async def post_count_info(request, body: CountInfoReq) -> CountInfoResp:
# temperature_qr, residual_current_qr = await normal_rate_of_location(
# temperature_qr, residual_current_qr = await normal_rate_of_location(
# company_id)
# company_id)
temperature_qr
,
residual_current_qr
=
await
\
temperature_qr
,
residual_current_qr
=
await
\
normal_rate_of_location
_new15
(
company_id
)
normal_rate_of_location
(
company_id
)
# 今日报警数和累计安全运行天数
# 今日报警数和累计安全运行天数
# today_alarm_count, safe_run_days, alarm_count = await other_info(
# today_alarm_count, safe_run_days, alarm_count = await other_info(
...
...
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