DmitrMakeev
commited on
Commit
•
5f8f183
1
Parent(s):
156db6f
Update app.py
Browse files
app.py
CHANGED
@@ -262,14 +262,13 @@ def load_data_from_json(json_data):
|
|
262 |
if 'Телефон' in user_data and user_data['Телефон'].startswith('+'):
|
263 |
user_data['Телефон'] = user_data['Телефон'][1:]
|
264 |
|
265 |
-
|
266 |
-
columns = ', '.join(user_data.keys())
|
267 |
-
placeholders = ', '.join(':' + key for key in user_data.keys())
|
268 |
-
query = f'''
|
269 |
INSERT INTO contacts (
|
270 |
-
|
|
|
271 |
) VALUES (
|
272 |
-
|
|
|
273 |
)
|
274 |
'''
|
275 |
cursor.execute(query, user_data)
|
|
|
262 |
if 'Телефон' in user_data and user_data['Телефон'].startswith('+'):
|
263 |
user_data['Телефон'] = user_data['Телефон'][1:]
|
264 |
|
265 |
+
query = '''
|
|
|
|
|
|
|
266 |
INSERT INTO contacts (
|
267 |
+
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, key_pr, n_con, canal, data_t,
|
268 |
+
b_fin, b_ban, b_ign, b_baners, b_butt, b_mess, shop_st
|
269 |
) VALUES (
|
270 |
+
:Имя, :Телефон, :Email, :vk_id, :chat_id, :ws_st, :ws_stop, :web_st, :fin_prog, :shop_st, :pr1, :pr2, :pr3, :pr4, :pr5, :ad_url, :curator, :key_pr, :n_con, :canal, :data_t,
|
271 |
+
:b_fin, :b_ban, :b_ign, :b_baners, :b_butt, :b_mess, :shop_st
|
272 |
)
|
273 |
'''
|
274 |
cursor.execute(query, user_data)
|