Browse Source

tongce: 更新数据调整

Signed-off-by: binren <zhangbr@elab-plus.com>
binren 5 years ago
parent
commit
80241d53e9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tongce.py

+ 2 - 1
tongce.py

@@ -548,7 +548,8 @@ class TongCe:
     '''
 
     def table_type_insert(self):
-        self.linshi_db.update(self.sql_20, self.table_type_info)
+        for data in self.table_type_info:
+            self.linshi_db.update(self.sql_20, data)
 
     def get_rule_id(self, sub_question_id, rule):
         for re in rule: