Explorar el Código

tongce: 更新数据调整

Signed-off-by: binren <zhangbr@elab-plus.com>
binren hace 5 años
padre
commit
80241d53e9
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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: