Kaynağa Gözat

附件的extract_count增加

luojiehua 5 ay önce
ebeveyn
işleme
b6334a6c16
3 değiştirilmiş dosya ile 5 ekleme ve 2 silme
  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: