Download:
child 100:6b89941c4273
parent 98:4d5fdd6e0478
99:bb325f32083d
Anton Shestakov <av6@dwimlabs.net>, Tue, 19 Jul 2016 14:55:13 +0800
crud: split a long line

1 файлов изменено, 2 вставок(+), 1 удалений(-) [+]
fruitbar/crud.py file | annotate | diff | comparison | revisions
--- a/fruitbar/crud.py Tue Jul 19 14:47:50 2016 +0800
+++ b/fruitbar/crud.py Tue Jul 19 14:55:13 2016 +0800
@@ -10,7 +10,8 @@
doc_stub = {}
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()