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,7 +33,8 @@ def gen_secret(length: int) -> str:
def _convert_monitor_return(monitor): 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): def _convert_monitor_input(kwargs):