Explorar o código

tongce; 数据写入db切换

Signed-off-by: binren <zhangbr@elab-plus.com>
binren %!s(int64=5) %!d(string=hai) anos
pai
achega
3de22441af
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tongce.py

+ 1 - 1
tongce.py

@@ -216,7 +216,7 @@ class TongCe:
                 if str(mi[1]) == str(sub_question_id) and str(mi[2]) == str(sub_option_id):
                     dispaly_data.append([mi[0], value])
         if len(dispaly_data) > 0:
-            self.shangju_db.add_some(self.sql_6, [dispaly_data])
+            self.linshi_db.add_some(self.sql_6, [dispaly_data])
         return {'插入数据条数': len(dispaly_data)}