--- a/fruitbar/crud.py Wed Jul 20 18:56:30 2016 +0800
+++ b/fruitbar/crud.py Wed Jul 20 19:04:15 2016 +0800
except (RecordNotFound, RecordDeleted):
- userdata = dict((k, v) for (k, v) in request.json.items() if k in self.safe_fields)
+ k: v for k, v in request.json.items()
+ if k in self.safe_fields
response = g.db.update(doc)