Browse Source

resources,tongce: 更新配置文件

Signed-off-by: binren <zhangbr@elab-plus.com>
binren 5 years ago
parent
commit
17817af9c8
2 changed files with 3 additions and 7 deletions
  1. 3 7
      excel_util.py
  2. BIN
      resources/tongce.xlsx

+ 3 - 7
excel_util.py

@@ -202,13 +202,9 @@ class ExcelUtil:
         rows = [row for row in work_sheet.rows][1:]
         info = {}
         for row in rows:
-            question_value = row[2].value
-            sub_option_value = row[9].value
-            name = row[12].value
-            if (question_value != '占位题' or str(sub_option_value).find('占位') != -1) and name is not None and str(name).find('占位') != -1:
-                key = str(int(row[1].value)) + str(int(row[9].value))
-                # 数据类型,数据项名称,所在tab
-                info[key] = [row[15].value, row[13].value, row[14].value]
+            key = str(int(row[1].value)) + str(int(row[9].value))
+            # 数据类型,数据项名称,所在tab
+            info[key] = [row[15].value, row[13].value, row[14].value]
         return info
 
 

BIN
resources/tongce.xlsx