|
@@ -484,8 +484,8 @@ class TongCe:
|
|
self.answers = self.marketing_db.select(self.sql_9)
|
|
self.answers = self.marketing_db.select(self.sql_9)
|
|
# 4: 写入match信息
|
|
# 4: 写入match信息
|
|
match_data = self.get_question_info_from_db()
|
|
match_data = self.get_question_info_from_db()
|
|
- # self.linshi_db.truncate('mvp_page_display_match')
|
|
|
|
- # self.linshi_db.add_some(self.sql_3, match_data)
|
|
|
|
|
|
+ self.linshi_db.truncate('mvp_page_display_match')
|
|
|
|
+ self.linshi_db.add_some(self.sql_3, match_data)
|
|
self.match_data_info = self.get_option_match_info()
|
|
self.match_data_info = self.get_option_match_info()
|
|
self.linshi_db.truncate('mvp_page_display_data')
|
|
self.linshi_db.truncate('mvp_page_display_data')
|
|
|
|
|
|
@@ -733,4 +733,6 @@ class TongCe:
|
|
|
|
|
|
if __name__ == '__main__':
|
|
if __name__ == '__main__':
|
|
tongce = TongCe()
|
|
tongce = TongCe()
|
|
- tongce.insert_into_rule()
|
|
|
|
|
|
+ match_data = tongce.get_question_info_from_db()
|
|
|
|
+ tongce.linshi_db.truncate('mvp_page_display_match')
|
|
|
|
+ tongce.linshi_db.add_some(tongce.sql_3, match_data)
|