[biplan] site changed

This commit is contained in:
Bezleputh 2014-11-12 10:00:56 +01:00
commit a632a75a59

View file

@ -66,7 +66,7 @@ class StartTime(Filter):
def filter(self, el):
index = 1 if len(el) > 1 else 0
content = CleanText.clean(CleanText('.', ['HORAIRES'])(el[index]))
a_time = content.split(' - ')[-2]
a_time = content.split(' - ')[0]
regexp = re.compile(ur'(?P<hh>\d+)h?(?P<mm>\d+)')
m = regexp.search(a_time)
return time(int(m.groupdict()['hh'] or 0), int(m.groupdict()['mm'] or 0))