From f32d655927e9e06099ea546d1c56316692ad87fc Mon Sep 17 00:00:00 2001 From: Valentin GHIRARDI Date: Mon, 23 Feb 2026 16:03:25 +0100 Subject: [PATCH] fixed bug --- app/filter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/filter.py b/app/filter.py index 2c359b1..baa890f 100644 --- a/app/filter.py +++ b/app/filter.py @@ -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 \ No newline at end of file + return filtered_calendar