--- a/fruitbar/crud.py Tue Jul 19 14:47:50 2016 +0800
+++ b/fruitbar/crud.py Tue Jul 19 14:55:13 2016 +0800
def get(self, workspace):
- return [project['doc'] for project in g.db.get_many(self.db_index, workspace, with_doc=True)]
+ records = g.db.get_many(self.db_index, workspace, with_doc=True)
+ return [record['doc'] for record in records]
def post(self, workspace):
doc = request.json.copy()