瀏覽代碼

support save

Xiaopeng Zhang 6 月之前
父節點
當前提交
094841b8bb
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      subdir/db.py

+ 2 - 2
subdir/db.py

@@ -706,8 +706,8 @@ async def save(client, data):
     db = client["baojia"]
     collection = db["qdxm"]
     for entry in data:
-        entry["__children"] = entry["children"]
-        del entry["children"]
+        entry["__children"] = entry["_children"]
+        del entry["_children"]
         await collection.replace_one({"biao_id": entry["biao_id"], "Dwgcbh": entry["Dwgcbh"], "bt": entry["bt"], "清单编码": entry["清单编码"]}, entry)
 
     return {"result": "ok"}