Update app.py
Browse files
app.py
CHANGED
|
@@ -240,21 +240,11 @@ def load_data_from_json(json_data):
|
|
| 240 |
|
| 241 |
query = '''
|
| 242 |
INSERT INTO contacts (
|
| 243 |
-
|
| 244 |
-
last_name, phone, birth_date, age, country, city, from_partner,
|
| 245 |
-
club_extended, promocode, bonus_05_23, club_255_payments,
|
| 246 |
-
agreement_consent, newsletter_consent, vk_id, chat_id, ws_statys,
|
| 247 |
-
ws_stop, web_statys, fin_progress, shop_statys_full, curator, pr1,
|
| 248 |
-
pr2, pr3, pr4, pr5, ad_url, key_pr, canal, data_t
|
| 249 |
) VALUES (
|
| 250 |
-
|
| 251 |
-
:Фамилия, :Телефон, :Дата рождения, :Возраст, :Страна, :Город,
|
| 252 |
-
:От партнера, :Руч продлен Клуба, :Промокод, :bonus_05_23,
|
| 253 |
-
:Клуб 255 - колл. оплат, :Согласен с договором оферты и политикой
|
| 254 |
-
конфиденциальности, :Согласен на рассылку, :vk_id, :chat_id, :ws_st,
|
| 255 |
-
:ws_stop, :web_st, :fin_prog, :shop_st, :curator, :pr1, :pr2, :pr3,
|
| 256 |
-
:pr4, :pr5, :ad_url, :key_pr, :canal, :data_t
|
| 257 |
)
|
|
|
|
| 258 |
'''
|
| 259 |
cursor.execute(query, user_data)
|
| 260 |
|
|
|
|
| 240 |
|
| 241 |
query = '''
|
| 242 |
INSERT INTO contacts (
|
| 243 |
+
name, phone, email, vk_id, chat_id, ws_statys, ws_stop, web_statys, fin_progress, shop_statys_full, pr1, pr2, pr3, pr4, pr5, ad_url, curator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 244 |
) VALUES (
|
| 245 |
+
:Имя, :Телефон, :Email, :vk_id, :chat_id, :ws_st, :ws_stop, :web_st, :fin_prog, :shop_st, :pr1, :pr2, :pr3, :pr4, :pr5, :ad_url, :curator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 246 |
)
|
| 247 |
+
|
| 248 |
'''
|
| 249 |
cursor.execute(query, user_data)
|
| 250 |
|