[senscritique] improve module code

This commit is contained in:
Bezleputh 2014-12-19 15:59:02 +01:00 committed by Florent Fourcot
commit 26e9763d51
4 changed files with 24 additions and 49 deletions

View file

@ -111,7 +111,7 @@ class SenscritiqueModule(Module, CapCalendarEvent):
for item in self.browser.list_events(date_from, date_to, package, channels):
items.append(item)
items.sort(key=lambda o:o.start_date)
items.sort(key=lambda o: o.start_date)
return items
def get_event(self, _id, event=None):