|
@@ -422,7 +422,7 @@ class TongCe:
|
|
|
for jzjg in juzhujiegou:
|
|
|
insert_data.append([zfl, a, cy, jzjg])
|
|
|
if len(insert_data) > 0:
|
|
|
- self.linshi_db.truncate('mvp_crowd_info')
|
|
|
+ # self.linshi_db.truncate('mvp_crowd_info')
|
|
|
self.linshi_db.add_some(self.sql_13, insert_data)
|
|
|
|
|
|
sql_15 = '''
|
|
@@ -508,10 +508,10 @@ class TongCe:
|
|
|
if str(md[1]) == str(key) and str(md[2]) == str(option_id):
|
|
|
match_id = md[0]
|
|
|
insert_data.append([crowd_info_id, match_id, rule_id, option_name, len(option_data_list) / question_people])
|
|
|
- if len(insert_data) > 0:
|
|
|
- self.linshi_db.truncate('mvp_page_display_data')
|
|
|
- self.linshi_db.add_some(self.sql_6, insert_data)
|
|
|
- return len(insert_data)
|
|
|
+ if len(insert_data) > 0:
|
|
|
+ self.linshi_db.truncate('mvp_page_display_data')
|
|
|
+ self.linshi_db.add_some(self.sql_6, insert_data)
|
|
|
+ return len(insert_data)
|
|
|
|
|
|
def get_rule_id(self, sub_question_id, rule):
|
|
|
for re in rule:
|