Commit 27882395 authored by Matthieu Haefele's avatar Matthieu Haefele
Browse files

Fixing case where no speaker are given in the indico

parent 6d45eac6
Pipeline #6088 passed with stages
in 50 seconds
......@@ -74,10 +74,11 @@ def get_indico_event_as_schedule(url, event):
if v['entryType'] != 'Break':
speakers = []
if 'presenters' in v.keys():
if v['presenters'] != []:
for person in v['presenters']:
speakers.append(person['firstName'].capitalize() + ' ' + person['familyName'].capitalize())
if 'presenters' not in v.keys():
speakers.append("Orateur à confirmer")
elif 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