Skip to content

Commit 12ae8a1

Browse files
authored
Merge pull request #72 from filips123/fix-schedule-date-parser
2 parents ebf53e4 + cd9a090 commit 12ae8a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

API/gimvicurnik/updaters/eclassroom.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def get_document_effective(self, document: DocumentInfo) -> date:
215215

216216
if document.type == DocumentType.LUNCH_SCHEDULE:
217217
title = document.title.split(",")[-1].split("-")[-1].strip()
218-
search = re.search(r"(\d+). ?(\d+). ?(\d+)", title)
218+
search = re.search(r"(\d+) *\. *(\d+) *\. *(\d+)", title)
219219
return date(year=int(search.group(3)), month=int(search.group(2)), day=int(search.group(1)))
220220

221221
# This cannot happen because only substitutions and schedules are provided

0 commit comments

Comments
 (0)