Add twitter to json
This commit is contained in:
parent
4e22717639
commit
8cf4bf3490
1 changed files with 2 additions and 0 deletions
|
@ -251,6 +251,8 @@ def schedule_json(request):
|
|||
),
|
||||
"cancelled": slot.content.cancelled,
|
||||
})
|
||||
if not slot.content.speaker.twitter_username == '':
|
||||
slot_data["twitter_id"] = slot.content.speaker.twitter_username
|
||||
else:
|
||||
slot_data.update({
|
||||
"name": slot.content_override if slot.content_override else "Slot",
|
||||
|
|
Loading…
Reference in a new issue