From 37e6cc5f2c1e2380778d7ec4a2e4d54bc76c7265 Mon Sep 17 00:00:00 2001 From: Dmitry Shulyak Date: Tue, 15 Sep 2015 16:43:05 +0300 Subject: [PATCH] Remove db_convert in all_events function --- solar/solar/events/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/solar/solar/events/api.py b/solar/solar/events/api.py index c4940db4..2e735ac2 100644 --- a/solar/solar/events/api.py +++ b/solar/solar/events/api.py @@ -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]