return persons as a list
This commit is contained in:
parent
877458fc23
commit
0552f9863d
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ class EventsHandler(CollectionHandler):
|
|||
for person in event.get('persons', []):
|
||||
if str(person.get('person_id')) == resource_id:
|
||||
return {'person': person}
|
||||
return {'persons': event.get('persons') or {}}
|
||||
return {'persons': event.get('persons') or []}
|
||||
|
||||
def handle_post_persons(self, id_, person_id, data):
|
||||
# Add a person to the list of persons registered at this event.
|
||||
|
|
Loading…
Reference in a new issue