|
@@ -65,8 +65,8 @@ def run_data_daochu():
|
|
|
# mongo_list = ["_id", "title", "projectname","projectcode","buyer","s_winner", "bidamount","area","city","district","bidopentime",'href','title_qa','projectname_qa','region_qa','projectcode_qa','bidopentime_qa','budget_qa','bidamount_qa']
|
|
|
# title_name = ['id', '标题', '项目名称', '项目编号', '采购单位', '中标单位', '中标金额', '省', '市', '县', '开标日期', '原文地址']
|
|
|
# mongo_list = ["_id", "title", "projectname", "projectcode", "buyer", "s_winner", "bidamount", "area", "city","district", "bidopentime", 'href']
|
|
|
- title_name = ['id','得分']
|
|
|
- mongo_list = ["id", 'score']
|
|
|
+ title_name = ['id','项目名称','标题','项目编号','herf','projectcode_qa']
|
|
|
+ mongo_list = ["id", 'projectname', "title", "projectcode", 'href','projectcode_qa']
|
|
|
data_list_correct = []
|
|
|
data_list_error =[]
|
|
|
for item in coll_user.find():
|
|
@@ -77,11 +77,11 @@ def run_data_daochu():
|
|
|
info_temp.append(pankong(mongo_list[i],item))
|
|
|
# if item["title_qa"] or item["projectname_qa"]or item["region_qa"]or item["projectcode_qa"]or item["bidopentime_qa"]or item["budget_qa"]or item["bidamount_qa"]:
|
|
|
#是你所有要写入的数据
|
|
|
- # if "flag" in item and item["flag"] == 1 :
|
|
|
- data_list_error.append(info_temp)
|
|
|
+ if item['projectcode_qa']!=[]:
|
|
|
+ data_list_error.append(info_temp)
|
|
|
# else:
|
|
|
# data_list_correct.append(info_temp)
|
|
|
# print(data_list_error)
|
|
|
- writeExcel("output_error.xlsx", "统计详情", title_name, data_list_error)
|
|
|
+ writeExcel("projectcode.xlsx", "统计详情", title_name, data_list_error)
|
|
|
# writeExcel("output_error.xlsx", "统计详情", title_name, data_list_error)
|
|
|
run_data_daochu()
|