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
2c70ab26
Commit
2c70ab26
authored
May 30, 2024
by
ZZH
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix multi lang 2024-05-30
parent
7cf8dc8e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
list_alarm.py
unify_api/modules/alarm_manager/views/list_alarm.py
+2
-3
No files found.
unify_api/modules/alarm_manager/views/list_alarm.py
View file @
2c70ab26
...
...
@@ -26,7 +26,7 @@ from unify_api.modules.alarm_manager.components.list_alarm import (
# @examples(list_alarm_example)
async
def
post_list_alarm
(
req
,
body
:
PageRequest
)
->
ListAlarmResponse
:
cid
=
req
.
json
.
get
(
"cid"
)
user_id
=
None
user_id
=
jwt_user
(
req
)
page_size
=
body
.
page_size
page_num
=
body
.
page_num
start
,
end
=
''
,
''
...
...
@@ -52,7 +52,7 @@ async def post_list_alarm(req, body: PageRequest) -> ListAlarmResponse:
if
req
.
json
.
get
(
"product"
)
==
Product
.
AndianUManage
.
value
:
proxy_id
=
req
.
json
.
get
(
"proxy_id"
)
product
=
req
.
json
.
get
(
"product"
)
user_id
=
jwt_user
(
req
)
req_cids
=
req
.
json
.
get
(
"cids"
)
# cids = await get_cids(user_id, product)
...
...
@@ -67,7 +67,6 @@ async def post_list_alarm(req, body: PageRequest) -> ListAlarmResponse:
Product
.
IntelligentU
.
value
]:
if
not
cid
:
product
=
req
.
json
.
get
(
"product"
)
user_id
=
jwt_user
(
req
)
cids
=
await
get_cids
(
user_id
,
product
)
else
:
cids
=
[
cid
]
...
...
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