Quellcode durchsuchen

documnet_.py未更新完成

lfygithub01 vor 1 Jahr
Ursprung
Commit
f14edd990c
1 geänderte Dateien mit 5 neuen und 2 gelöschten Zeilen
  1. 5 2
      document_.py

+ 5 - 2
document_.py

@@ -78,7 +78,7 @@ class DocumentPreReview():
         ''' get table data
         '''
         # file_path = "data/预审查数据/all_tables.json"
-        file_path = "data/预审查数据/三峡电站左岸厂房桥机远程智能化操作研发与实施招标文件重新招标(发售版).doc-table.json"
+        file_path = "data/预审查数据/三峡左岸及电源电站中央空调系统监控系统改造招标文件-发售版-table.json"
         all_tables = self.bm.json_read(file_path)
         return all_tables
     
@@ -220,7 +220,10 @@ class DocumentPreReview():
                     if tag and self._scrutinize_judge(tag):
                         tag_sign = tag
                         if tag_sign not in scrutinize_dict: scrutinize_dict[tag_sign] = []
-                    evaluation_factor,evaluation_criteria,weights = table[evaluation_factor_index],table[evaluation_criteria_index],table[weights_index]
+                    try:
+                        evaluation_factor,evaluation_criteria,weights = table[evaluation_factor_index],table[evaluation_criteria_index],table[weights_index]
+                    except:
+                        print()
                     if not weights: value = {"评分因素":evaluation_factor.strip().replace("\n",""), "评分标准":evaluation_criteria.strip().replace("\n","")}
                     else: value = {"评分因素":evaluation_factor.strip().replace("\n",""),
                                     "评分标准":evaluation_criteria.strip().replace("\n",""),