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,7 +33,8 @@ def gen_secret(length: int) -> str:
|
|||
|
||||
|
||||
def _convert_monitor_return(monitor):
|
||||
monitor["notificationIDList"] = [int(i) for i in monitor["notificationIDList"].keys()]
|
||||
if type(monitor["notificationIDList"]) == dict:
|
||||
monitor["notificationIDList"] = [int(i) for i in monitor["notificationIDList"].keys()]
|
||||
|
||||
|
||||
def _convert_monitor_input(kwargs):
|
||||
|
|
Loading…
Reference in a new issue