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
'''
d = get_talk_data(name)
if 'time' in d:
return d['time']
return datetime.datetime(1, 1, 1)
room = d.get('room', '')
time = d.get('time', datetime.datetime(1, 1, 1))
title = d.get('title', '')
return (time, room, title)
return [
nodes.raw('', tmpl.render(lang=lang, **get_talk_data(n)),