Browse Source

extract_count增加附件影响

luojiehua 11 months ago
parent
commit
4b5228cbcb
1 changed files with 2 additions and 1 deletions
  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