Commit a38dc176 authored by Matthieu Haefele's avatar Matthieu Haefele Committed by Anne Cadiou
Browse files

Fix directives for case with no presenter at all

parent 212e28c5
......@@ -72,11 +72,13 @@ def get_indico_event_as_schedule(url, event):
'title': v['title'],
}
print(v)
if v['entryType'] != 'Break':
speakers = []
if v['presenters'] != []:
for person in v['presenters']:
speakers.append(person['firstName'].capitalize() + ' ' + person['familyName'].capitalize())
if 'presenters' in v.keys():
if v['presenters'] != []:
for person in v['presenters']:
speakers.append(person['firstName'].capitalize() + ' ' + person['familyName'].capitalize())
else:
speakers.append("Orateur à confirmer")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment