use new naming of excluded calendars

This commit is contained in:
George Ruinelli 2023-10-13 19:08:38 +02:00
parent c9d77c745e
commit 77dd449d3e

View File

@ -22,7 +22,8 @@ import pprint as pp
def fetch_calendar(): def fetch_calendar():
numberOfDaysToShow = 5 numberOfDaysToShow = 5
excludedCalendars = ['todo', 'todogemeinsam', 'contact_birthdays', 'geburtstage', 'infos'] #excludedCalendars = ['todo', 'todogemeinsam', 'contact_birthdays', 'geburtstage', 'infos']
excludedCalendars = ['ToDo', 'ToDo Gemeinsam', 'Geburtstage von Kontakten', 'Geburtstage', 'Infos']
#excludedCalendars = ['todo', 'todogemeinsam', 'contact_birthdays', 'geburtstage', 'gemeinsam', 'evtermine_shared_by_anita', 'jael'] #excludedCalendars = ['todo', 'todogemeinsam', 'contact_birthdays', 'geburtstage', 'gemeinsam', 'evtermine_shared_by_anita', 'jael']
#excludedCalendars = ['gemeinsam', 'contact_birthdays', 'geburtstage'] #excludedCalendars = ['gemeinsam', 'contact_birthdays', 'geburtstage']
@ -64,9 +65,11 @@ def fetch_calendar():
#if str(calendar).split("/")[-2] in excludedCalendars: #if str(calendar).split("/")[-2] in excludedCalendars:
if str(calendar) in excludedCalendars: if str(calendar) in excludedCalendars:
#print("Ignoring %s" % str(calendar).split("/")[-2]) #print("Ignoring %s" % str(calendar).split("/")[-2])
#print("Ignoring %s" % str(calendar))
continue continue
else: else:
#print("Adding %s" % str(calendar).split("/")[-2]) #print("Adding %s" % str(calendar).split("/")[-2])
#print("Adding %s" % str(calendar))
calendarsFiltered.append(calendar) calendarsFiltered.append(calendar)