fix multidate non esposto

This commit is contained in:
encrypt 2024-07-03 21:43:25 +02:00
parent 575a6125f5
commit 89fec60de6

2
app.py
View file

@ -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