Update app.py
Browse files
app.py
CHANGED
@@ -1693,15 +1693,16 @@ def insert_data(data, verify_phone, add_curator):
|
|
1693 |
curator = curators[current_curator_index]
|
1694 |
current_curator_index = (current_curator_index + 1) % len(curators)
|
1695 |
else:
|
1696 |
-
curator = row.get('
|
1697 |
|
1698 |
if verify_phone == "1":
|
1699 |
ws_st = verify_phone_number(phone)
|
1700 |
else:
|
1701 |
ws_st = row.get('ws_st', '')
|
1702 |
|
1703 |
-
|
1704 |
-
|
|
|
1705 |
|
1706 |
placeholders = ', '.join(['?' for _ in columns])
|
1707 |
columns_str = ', '.join(columns)
|
|
|
1693 |
curator = curators[current_curator_index]
|
1694 |
current_curator_index = (current_curator_index + 1) % len(curators)
|
1695 |
else:
|
1696 |
+
curator = row.get('Куратор', '')
|
1697 |
|
1698 |
if verify_phone == "1":
|
1699 |
ws_st = verify_phone_number(phone)
|
1700 |
else:
|
1701 |
ws_st = row.get('ws_st', '')
|
1702 |
|
1703 |
+
# Обновленные столбцы и значения
|
1704 |
+
columns = ['name', 'phone', 'email', 'vk_id', 'chat_id', 'ws_st', 'city', 'curator', 'purchase_status', 'traffic_channel', 'date', 'pr_key', 'channel', 'date']
|
1705 |
+
values = [name, phone, email, row.get('ВКонтакте', ''), row.get('Телеграм', ''), ws_st, row.get('Город', ''), curator, row.get('Статус покупки', ''), row.get('Канал трафика', ''), data_t, row.get('Ключ PR', ''), row.get('Канал', ''), row.get('Дата', '')]
|
1706 |
|
1707 |
placeholders = ', '.join(['?' for _ in columns])
|
1708 |
columns_str = ', '.join(columns)
|