Skip to content

Commit

Permalink
Merge pull request #18 from filips123/fix-lunch-schedule-url-format
Browse files Browse the repository at this point in the history
Fix lunch schedule URL regex
  • Loading branch information
filips123 authored Mar 21, 2021
2 parents 23399f7 + d01b57c commit cc388aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion API/gimvicurnik/updaters/eclassroom.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def _store_lunch_schedule(self, name, url, span):

# Daily lunch schedule format, used starting with March 2021
# Example: delitevKosila-mar9-2021-TOR-objava-PDF-0.pdf
elif re.search(r"\/delitevKosila-[a-z0-9]+-[0-9]+-[A-Z]{3}-objava(?:-PDF(?:-[0-9])?)?\.pdf$", url):
elif re.search(r"\/delitevKosila-[a-z0-9]+-[0-9]+-[A-Z]{3}-objava.*\.pdf$", url):
date = self._get_daily_lunch_schedule_date(name, url)
self._parse_daily_lunch_schedule(date, tables)

Expand Down

0 comments on commit cc388aa

Please sign in to comment.