浏览代码

extract_count增加审批和投诉影响

luojiehua 11 月之前
父节点
当前提交
a9c43521c7
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12 0
      BiddingKG/dl/interface/extract.py

+ 12 - 0
BiddingKG/dl/interface/extract.py

@@ -158,6 +158,18 @@ def extractCount(extract_dict,page_attachments,web_source_name):
             traceback.print_exc()
             pass
 
+    list_approval_dict = _extract.get("approval",[])
+    for _dict in list_approval_dict:
+        for k,v in _dict.items():
+            if v is not None and v!='' and v!="未知":
+                extract_count += 1
+
+
+    punish_dict = _extract.get("punish",{})
+    for k,v in punish_dict.items():
+        if v is not None and v!='' and v!="未知":
+            extract_count += 1
+
     if web_source_name in set_login_web:
         extract_count -= 1