[biplan] detect invalid events

This commit is contained in:
Bezleputh 2014-12-09 10:36:14 +01:00 committed by Florent
commit 77d5e6b0f4
2 changed files with 3 additions and 3 deletions

View file

@ -54,13 +54,13 @@ class BiplanModule(Module, CapCalendarEvent):
query.categories)
items = list(itertools.chain(concert_events, theatre_events))
items.sort(key=lambda o:o.start_date)
items.sort(key=lambda o: o.start_date)
return items
def list_events(self, date_from, date_to=None):
items = list(itertools.chain(self.browser.list_events_concert(date_from, date_to),
self.browser.list_events_theatre(date_from, date_to)))
items.sort(key=lambda o:o.start_date)
items.sort(key=lambda o: o.start_date)
return items
def get_event(self, _id):