ICS: fix summary
This commit is contained in:
parent
7abba24c9a
commit
24eb0286dc
1 changed files with 4 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue