[senscritique] improve module code
This commit is contained in:
parent
71347cb8f7
commit
26e9763d51
4 changed files with 24 additions and 49 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue