[Mongo] Unescape dict keys when rebuild (#2671)

* Unescape dict keys when rebuilding

* update pipfile

* Really update pipfile now
This commit is contained in:
Will
2019-05-14 20:50:51 -07:00
committed by Michael H
parent 7f1c2b475b
commit 165e40c0db
3 changed files with 85 additions and 19 deletions

View File

@@ -92,6 +92,7 @@ class Mongo(BaseDriver):
async for doc in cursor:
pkeys = doc["_id"]["RED_primary_key"]
del doc["_id"]
doc = self._unescape_dict_keys(doc)
if len(pkeys) == 0:
# Global data
ret.update(**doc)