Browse Source

tongce; 数据写入db切换

Signed-off-by: binren <zhangbr@elab-plus.com>
binren 5 years ago
parent
commit
3de22441af
1 changed files with 1 additions and 1 deletions
  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)}