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
5c6c1e29
Commit
5c6c1e29
authored
Jun 09, 2023
by
lcn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修复
parent
354b291f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
98 additions
and
72 deletions
+98
-72
electric_pds.py
unify_api/modules/electric/procedures/electric_pds.py
+8
-0
electric.py
unify_api/modules/electric/views/electric.py
+90
-72
No files found.
unify_api/modules/electric/procedures/electric_pds.py
View file @
5c6c1e29
...
...
@@ -20,3 +20,11 @@ async def elec_current_data(mtids, cid):
if
data
[
"mtid"
]
in
mtids
:
res_map
[
data
[
"mtid"
]]
=
data
return
res_map
def
trans_electric_tdengine_data
(
results
):
head
=
parse_td_columns
(
results
)
if
not
results
[
"data"
]:
results
[
"data"
]
=
[
''
for
i
in
range
(
len
(
head
))]
res
=
dict
(
zip
(
head
,
results
[
"data"
][
0
]))
return
res
unify_api/modules/electric/views/electric.py
View file @
5c6c1e29
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