srehwald / eat-api

Simple static API for some (student) food places in Munich.
https://srehwald.github.io/eat-api/
MIT License
14 stars 20 forks source link

wn/year regex for IPP pdf #18

Closed raabf closed 6 years ago

raabf commented 6 years ago

Will now also use a regex for getting the week number/year out of the PDF name.

You will need that for next week or you will get:

ValueError: invalid literal for int() with base 10: '7\xad'

(There is a strange spacial character beween the 7 and _ KW-7%C2%AD_12.02.-16.02.2018.pdf)

Note that the program will still throw an error after this PR. I think the reason is that the parser is confused with the empty column on Wednesday (Aschermittwoch).