From 7daadf88d5c744d17b3b7d1c7b4e95ab18a77a15 Mon Sep 17 00:00:00 2001 From: Valentin GHIRARDI Date: Tue, 17 Mar 2026 21:56:24 +0100 Subject: [PATCH] fixed bug --- app/filter.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/app/filter.py b/app/filter.py index cdf627b..e7f9b57 100644 --- a/app/filter.py +++ b/app/filter.py @@ -11,15 +11,14 @@ def _filter_group(name: str, titles: list[str], group: str) -> bool | None: return None def _filter_event(name: str, td_group: str, sh_group: str) -> bool: - res = _filter_group(name, sh_titles, sh_group) - if res: - return True + res = _filter_group(name, td_titles, td_group) + if res is not None: + return res - elif res == None: - if _filter_group(name, td_titles, td_group) != False: - return True + if _filter_group(name, sh_titles, sh_group) == False: + return False - return False + return True def filter_calendar(calendar: Calendar, td_group: str, sh_group: str) -> Calendar: filtered_calendar = Calendar()