added missing ) again

This commit is contained in:
Michael Rodin 2023-08-27 12:39:24 +02:00
parent 367463cfb2
commit 2d23c6cffc

View file

@ -18,7 +18,7 @@ HTMLTEMPLATE='<a class="item" href="{link}"><div id="{item}" class="item"><h2 cl
htmllist=[]
htmllist.append(HTMLTEMPLATE.format(link=os.environ.get('UPTIME_KUMA_URL'),item="Uptime Kuma",desc=descriptions["Uptime Kuma"]))
with UptimeKumaApi(os.environ.get('UPTIME_KUMA_URL') as api:
with UptimeKumaApi(os.environ.get('UPTIME_KUMA_URL')) as api:
api.login(os.environ.get('UPTIME_KUMA_ADMIN_USER'),os.environ.get('UPTIME_KUMA_ADMIN_PASSWORD'))
for item in api.get_monitors():
if item["name"] in exclude or item["type"] == MonitorType.GROUP: