def getJudgementDetail():
jd_collection = db.JudgmentDoc_isExactlySame
query = jd_collection.find({},{'_id':0,'Id':1}).sort("Id",pymongo.ASCENDING)
idList = list(query)
length = len(idList)
collection = db.JudgementDetail
query = collection.find({},{'_id':0,'Id':1}).sort("_id",pymongo.DESCENDING).limit(3)
record_id = list(query)
print(record_id)
ii = idList.index(record_id[0])
for i in range(ii+1,ii+30000):
print("%d/%d\t%s"%(i,length,idList[i]['Id']))
ret = JudgementDetail(idList[i]['Id'])
if ret in err_code:
print('err_code: %s'%ret)
break
return ret
评论列表
文章目录