fixed bug

This commit is contained in:
2026-02-23 16:03:25 +01:00
parent 19ff6361a1
commit f32d655927

View File

@@ -6,7 +6,7 @@ sh_titles = ["ANGLAIS", "Anglais", "ETHIQUE"]
def _filter_group(name: str, titles: list[str], group: str) -> bool:
for title in titles:
if title in name:
return group == "all" or group in name
return "Examen" in name or group == "all" or group in name
return True
@@ -20,4 +20,4 @@ def filter_calendar(calendar: Calendar, td_group: str, sh_group: str) -> Calenda
if _filter_event(event.name, td_group, sh_group):
filtered_calendar.events.add(event)
return filtered_calendar
return filtered_calendar