Commit d1d96d6a authored by erdnaxe's avatar erdnaxe 🎇

Show the day when an event is removed

parent a444559d
......@@ -7,6 +7,7 @@ logger = logging.getLogger('Filters')
def group(event, selected_groups) -> bool:
"""Filter group according to the group selected"""
summary = event.get('summary')
date = event.get('dtstart').dt.strftime("%Y-%m-%d")
summary_search ='([0-9]{3}) - ([A-Z]{2}) \(grpe : ([^\)]*)\)',
summary, re.IGNORECASE)
......@@ -21,7 +22,7 @@ def group(event, selected_groups) -> bool:
return True
# Group is not the one selected"Remove '\033[1;1m{summary}\033[1;0m' because it had not been chosen")"Remove '\033[1;1m{summary}\033[1;0m' (on \033[1;1m{date}\033[1;0m) because it had not been chosen")
return False
# If there is not a group specified do not filter
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment