瀏覽代碼

附件的extract_count增加

luojiehua 5 月之前
父節點
當前提交
b6334a6c16
共有 3 個文件被更改,包括 5 次插入2 次删除
  1. 2 1
      .gitignore
  2. 1 0
      .idea/.gitignore
  3. 2 1
      BiddingKG/dl/interface/extract.py

+ 2 - 1
.gitignore

@@ -20,4 +20,5 @@ node_modules
 /BiddingKG/dl/LEGAL_ENTERPRISE.txt
 /BiddingKG/dl_dev/
 BiddingKG.iml
-misc.xml
+misc.xml
+/.scannerwork/css-bundle/

+ 1 - 0
.idea/.gitignore

@@ -6,3 +6,4 @@
 /dataSources.local.xml
 # Editor-based HTTP Client requests
 /httpRequests/
+/sonarlint/issuestore/

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

@@ -162,7 +162,8 @@ def extractCount(extract_dict,page_attachments,web_source_name):
                     if str(classification)=='采购清单':
                         has_qingdan = True
 
-                extract_count += 2
+
+                extract_count += len(_attachments)//2+1
             if has_zhaobiao:
                 extract_count += 2
             if has_qingdan: