浏览代码

extract_count增加附件影响

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

+ 2 - 1
BiddingKG/dl/interface/extract.py

@@ -116,7 +116,7 @@ def extractCount(extract_dict,page_attachments):
 
 
     if page_attachments is not None and page_attachments!='':
     if page_attachments is not None and page_attachments!='':
         try:
         try:
-            _attachments = json.loads(page_attachments,"")
+            _attachments = json.loads(page_attachments)
             has_zhaobiao = False
             has_zhaobiao = False
             has_qingdan = False
             has_qingdan = False
             if len(_attachments)>0:
             if len(_attachments)>0:
@@ -131,6 +131,7 @@ def extractCount(extract_dict,page_attachments):
             if has_qingdan:
             if has_qingdan:
                 extract_count += 2
                 extract_count += 2
         except Exception as e:
         except Exception as e:
+            traceback.print_exc()
             pass
             pass