ソースを参照

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!='':
         try:
-            _attachments = json.loads(page_attachments,"")
+            _attachments = json.loads(page_attachments)
             has_zhaobiao = False
             has_qingdan = False
             if len(_attachments)>0:
@@ -131,6 +131,7 @@ def extractCount(extract_dict,page_attachments):
             if has_qingdan:
                 extract_count += 2
         except Exception as e:
+            traceback.print_exc()
             pass