Ordina talk per stanza/nome oltre che per data

This commit is contained in:
boyska 2018-06-17 02:32:19 +02:00
parent 5aed1abcd4
commit e28ed8f549

View file

@ -188,9 +188,10 @@ class TalkListDirective(Directive):
When no date is available, put at the beginning When no date is available, put at the beginning
''' '''
d = get_talk_data(name) d = get_talk_data(name)
if 'time' in d: room = d.get('room', '')
return d['time'] time = d.get('time', datetime.datetime(1, 1, 1))
return datetime.datetime(1, 1, 1) title = d.get('title', '')
return (time, room, title)
return [ return [
nodes.raw('', tmpl.render(lang=lang, **get_talk_data(n)), nodes.raw('', tmpl.render(lang=lang, **get_talk_data(n)),