Merge pull request #132 from alberanid/master

fixes #116: strip complete list of registered persons from a person events list
This commit is contained in:
Davide Alberani 2016-05-15 11:55:31 +02:00
commit ea8519a06e

View file

@ -377,6 +377,8 @@ class PersonsHandler(CollectionHandler):
if str(persons.get('person_id')) == id_:
person_data = persons
break
if 'persons' in event:
del event['persons']
event['person_data'] = person_data
if resource_id and events:
return events[0]