Fix mensa module

This commit is contained in:
Matthias Schiffer 2012-03-06 05:40:29 +01:00
parent 33bbc21b0f
commit bb0168b6b8

View file

@ -59,7 +59,7 @@ class Module(ModuleBase):
return (ret, match.end()) return (ret, match.end())
match = re.compile(r'^.*?<table[^>]*>.*?<td[^>]*>.*?(\d+)\.(\d+)\. - \d+\.\d+\.(\d+).*?</td>.*?<td[^>]*>Freitag</td>\s*</tr>(.*?)</table>.*$', re.DOTALL|re.IGNORECASE).match(data) match = re.compile(r'^.*?<table[^>]*>.*?<td[^>]*>.*?(\d+)\.(\d+)\. ?- ?\d+\.\d+\.(\d+).*?</td>.*?<td[^>]*>Freitag</td>\s*</tr>(.*?)</table>.*$', re.DOTALL|re.IGNORECASE).match(data)
if not match: if not match:
return False return False