ICS: fix summary

This commit is contained in:
boyska 2018-07-01 10:35:17 +02:00
parent 7abba24c9a
commit 24eb0286dc

View file

@ -118,7 +118,9 @@ def get_talk_data(talkname):
data.setdefault('nooverlap', [])
if 'title' not in data:
logging.warn("Talk <{}> has no `title` field".format(talkname))
data['title'] = talkname
data['title'] = unicode(talkname)
else:
data['title'] = unicode(data['title'])
if 'text' not in data:
logging.warn("Talk <{}> has no `text` field".format(talkname))
data['text'] = ''
@ -373,7 +375,7 @@ def talk_to_ics(talk):
e = ics.Event(
uid="%s@%d.hackmeeting.org" % (talk['id'],
get_global_data()['startdate'].year),
name=talk['id'],
name=unidecode.unidecode(talk['title']),
begin=talk['time'],
duration=datetime.timedelta(minutes=talk['duration']),
transparent=True,