Update app.py
Browse files
app.py
CHANGED
|
@@ -458,8 +458,8 @@ def add_data_gc():
|
|
| 458 |
if existing_contact:
|
| 459 |
cursor.execute('''
|
| 460 |
UPDATE contacts SET
|
| 461 |
-
name = ?, email = ?, vk_id = ?, chat_id = ?,
|
| 462 |
-
|
| 463 |
pr3 = ?, pr4 = ?, pr5 = ?, ad_url = ?, curator = ?, key_pr = ?, n_con = ?,
|
| 464 |
canal = ?, data_t = ?
|
| 465 |
WHERE phone = ? OR email = ?
|
|
@@ -469,8 +469,8 @@ def add_data_gc():
|
|
| 469 |
else:
|
| 470 |
cursor.execute('''
|
| 471 |
INSERT INTO contacts (
|
| 472 |
-
name, phone, email, vk_id, chat_id,
|
| 473 |
-
|
| 474 |
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
| 475 |
''', (name, phone, email, vk_id, chat_id, ws_statys, ws_stop, web_statys, fin_progress,
|
| 476 |
shop_statys_full, pr1, pr2, pr3, pr4, pr5, ad_url, curator, key_pr, n_con, canal, data_t))
|
|
@@ -540,8 +540,8 @@ def add_data_ras():
|
|
| 540 |
if existing_contact:
|
| 541 |
cursor.execute('''
|
| 542 |
UPDATE contacts SET
|
| 543 |
-
name = ?, email = ?, vk_id = ?, chat_id = ?,
|
| 544 |
-
|
| 545 |
pr3 = ?, pr4 = ?, pr5 = ?, ad_url = ?, curator = ?, key_pr = ?, n_con = ?,
|
| 546 |
canal = ?, data_t = ?
|
| 547 |
WHERE phone = ? OR email = ?
|
|
@@ -551,7 +551,7 @@ def add_data_ras():
|
|
| 551 |
else:
|
| 552 |
cursor.execute('''
|
| 553 |
INSERT INTO contacts (
|
| 554 |
-
name, phone, email, vk_id, chat_id,
|
| 555 |
shop_st, pr1, pr2, pr3, pr4, pr5, ad_url, curator, key_pr, n_con, canal, data_t
|
| 556 |
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
| 557 |
''', (name, phone, email, vk_id, chat_id, ws_statys, ws_stop, web_statys, fin_progress,
|
|
@@ -678,7 +678,7 @@ def data_gc_tab_out():
|
|
| 678 |
conn = sqlite3.connect('data_gc.db')
|
| 679 |
cursor = conn.cursor()
|
| 680 |
cursor.execute('''
|
| 681 |
-
SELECT id, name, phone, email, vk_id, chat_id,
|
| 682 |
shop_st, pr1, pr2, pr3, pr4, pr5, ad_url, curator, key_pr, canal, n_con, data_t
|
| 683 |
FROM contacts
|
| 684 |
''')
|
|
|
|
| 458 |
if existing_contact:
|
| 459 |
cursor.execute('''
|
| 460 |
UPDATE contacts SET
|
| 461 |
+
name = ?, email = ?, vk_id = ?, chat_id = ?, ws_st = ?, ws_stop = ?,
|
| 462 |
+
web_st = ?, fin_prog = ?, shop_st = ?, pr1 = ?, pr2 = ?,
|
| 463 |
pr3 = ?, pr4 = ?, pr5 = ?, ad_url = ?, curator = ?, key_pr = ?, n_con = ?,
|
| 464 |
canal = ?, data_t = ?
|
| 465 |
WHERE phone = ? OR email = ?
|
|
|
|
| 469 |
else:
|
| 470 |
cursor.execute('''
|
| 471 |
INSERT INTO contacts (
|
| 472 |
+
name, phone, email, vk_id, chat_id, ws_st, ws_stop, web_st, fin_prog,
|
| 473 |
+
shop_st, pr1, pr2, pr3, pr4, pr5, ad_url, curator, key_pr, n_con, canal, data_t
|
| 474 |
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
| 475 |
''', (name, phone, email, vk_id, chat_id, ws_statys, ws_stop, web_statys, fin_progress,
|
| 476 |
shop_statys_full, pr1, pr2, pr3, pr4, pr5, ad_url, curator, key_pr, n_con, canal, data_t))
|
|
|
|
| 540 |
if existing_contact:
|
| 541 |
cursor.execute('''
|
| 542 |
UPDATE contacts SET
|
| 543 |
+
name = ?, email = ?, vk_id = ?, chat_id = ?, ws_st = ?, ws_stop = ?,
|
| 544 |
+
web_st = ?, fin_prog = ?, shop_st = ?, pr1 = ?, pr2 = ?,
|
| 545 |
pr3 = ?, pr4 = ?, pr5 = ?, ad_url = ?, curator = ?, key_pr = ?, n_con = ?,
|
| 546 |
canal = ?, data_t = ?
|
| 547 |
WHERE phone = ? OR email = ?
|
|
|
|
| 551 |
else:
|
| 552 |
cursor.execute('''
|
| 553 |
INSERT INTO contacts (
|
| 554 |
+
name, phone, email, vk_id, chat_id, ws_st, ws_stop, web_st, fin_prog,
|
| 555 |
shop_st, pr1, pr2, pr3, pr4, pr5, ad_url, curator, key_pr, n_con, canal, data_t
|
| 556 |
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
| 557 |
''', (name, phone, email, vk_id, chat_id, ws_statys, ws_stop, web_statys, fin_progress,
|
|
|
|
| 678 |
conn = sqlite3.connect('data_gc.db')
|
| 679 |
cursor = conn.cursor()
|
| 680 |
cursor.execute('''
|
| 681 |
+
SELECT id, name, phone, email, vk_id, chat_id, ws_st, ws_stop, web_st, fin_prog,
|
| 682 |
shop_st, pr1, pr2, pr3, pr4, pr5, ad_url, curator, key_pr, canal, n_con, data_t
|
| 683 |
FROM contacts
|
| 684 |
''')
|