fixes y calendario de google holidays desactivado

Signed-off-by: Omar Sánchez Pizarro <admin@pribyte.cloud>
This commit is contained in:
2025-09-04 14:13:57 +02:00
parent e9ec438183
commit 8123de824e
5 changed files with 13 additions and 8 deletions

View File

@@ -95,12 +95,13 @@ class GoogleCalendar:
if event['organizer']['displayName'] == 'autoficher':
return 'Forzado desde autoficher - ' + event.get("summary", "Sin Título")
if 'description' in event and ("Cataluña" in event['description'] or 'Día festivo' in event[
'description'] or 'Celebración\n' in event['description']) and not 'Cambio de horario' in event[
'summary']:
return event['summary']
#Desactivado por que no funcionaba muy bien ese calendario... se han puesto en el calendario autoficher los dias festivos correctos
#if 'description' in event and ("Cataluña" in event['description'] or 'Día festivo' in event[
# 'description'] or 'Celebración\n' in event['description']) and not 'Cambio de horario' in event[
# 'summary']:
# return event['summary']
except HttpError as error:
print(f'An error occurred: {error}')
return 'Error de llama a Google Calendar'
return False
return False