|
|
@@ -2,7 +2,8 @@ import pymongo
|
|
|
import pandas
|
|
|
import json
|
|
|
from pymongo import MongoClient
|
|
|
-client = MongoClient()
|
|
|
+uri2 = "mongodb://owner:Pheecian1@47.101.198.30:27017/dinge"
|
|
|
+client = MongoClient(uri2)
|
|
|
db = client["dinge"]
|
|
|
collection = db["de-collection"]
|
|
|
from subdir import service
|
|
|
@@ -35,19 +36,18 @@ def handle_jx(jx):
|
|
|
result["hj"] = jx["hj"]
|
|
|
return result
|
|
|
|
|
|
-for post in collection.find({"zhuanye": "安装"}):
|
|
|
+for post in collection.find({"zhuanye": "修缮工程安装"}):
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
print(post['DEBH'])
|
|
|
|
|
|
- myquery = { "zhuanye": "安装",
|
|
|
+ myquery = { "zhuanye": "修缮工程安装",
|
|
|
"DEBH": post["DEBH"]
|
|
|
}
|
|
|
- A1, A2, rg, jx, cl, bz_, A3 = service.getSingleDeXilie_az(post["DEBH"])
|
|
|
+ A1, A2, rg, jx, cl, bz_, A3 = service.getSingleDeXilie_xsaz(post["DEBH"])
|
|
|
if bz_:
|
|
|
bz = json.loads(bz_)
|
|
|
mongo_bz = []
|