fix: convert monitor notificationIDList only once

This commit is contained in:
lucasheld 2022-09-18 14:49:10 +02:00
parent 928462c6b2
commit 54d221cdfe

View file

@ -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()]