fixed bug
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user