Commit e001ef21 authored by erdnaxe's avatar erdnaxe 🎇

Patch regex to support GM

parent ea583df4
...@@ -8,7 +8,7 @@ def group(event, selected_groups) -> bool: ...@@ -8,7 +8,7 @@ def group(event, selected_groups) -> bool:
"""Filter group according to the group selected""" """Filter group according to the group selected"""
summary = event.get('summary') summary = event.get('summary')
date = event.get('dtstart').dt.strftime("%Y-%m-%d") date = event.get('dtstart').dt.strftime("%Y-%m-%d")
summary_search = re.search('([0-9]{3}) - ([A-Z]{2}) \(grpe : ([^\)]*)\)', summary_search = re.search('([0-9]{3}) - ([A-Za-z ]*) \(grpe : ([^\)]*)\)',
summary, re.IGNORECASE) summary, re.IGNORECASE)
if summary_search: if summary_search:
......
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