fix: convert monitor notificationIDList only once
This commit is contained in:
parent
928462c6b2
commit
54d221cdfe
1 changed files with 2 additions and 1 deletions
|
@ -33,6 +33,7 @@ def gen_secret(length: int) -> str:
|
||||||
|
|
||||||
|
|
||||||
def _convert_monitor_return(monitor):
|
def _convert_monitor_return(monitor):
|
||||||
|
if type(monitor["notificationIDList"]) == dict:
|
||||||
monitor["notificationIDList"] = [int(i) for i in monitor["notificationIDList"].keys()]
|
monitor["notificationIDList"] = [int(i) for i in monitor["notificationIDList"].keys()]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue