Sfoglia il codice sorgente

fix multidate non esposto

encrypt 3 mesi fa
parent
commit
89fec60de6
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app.py

+ 1 - 1
app.py

@@ -39,7 +39,7 @@ def fetch_events(api_endpoint):
             end_dt = datetime.datetime.fromtimestamp(event['end_datetime'])
             end_day  = f"{day2giorno(start_dt.strftime('%A'))} {end_dt.strftime('%d')}"
             end_hour = end_dt.strftime("%H:%M")
-            if event['multidate']:
+            if event.get('multidate', False):
                 when = f"da {when} a {end_day}"
             when += " alle "
             when += end_hour