Merge pull request #150 from dshulyak/fix_db_convert

Remove db_convert in all_events function
This commit is contained in:
Jędrzej Nowak 2015-09-15 15:47:03 +02:00
commit 52ae1aa729

View File

@ -84,7 +84,8 @@ def add_events(resource, lst):
def all_events(resource):
events = db.get(resource, collection=db.COLLECTIONS.events,
return_empty=True, db_convert=False)
return_empty=True)
if not events:
return []
return [create_event(i) for i in events.properties]