DmitrMakeev commited on
Commit
7a19cd3
·
verified ·
1 Parent(s): a7d1e77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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('curator', '')
1697
 
1698
  if verify_phone == "1":
1699
  ws_st = verify_phone_number(phone)
1700
  else:
1701
  ws_st = row.get('ws_st', '')
1702
 
1703
- columns = ['name', 'phone', 'email', 'vk_id', 'chat_id', 'ws_st', 'ws_stop', 'web_st', 'fin_prog', 'b_city', 'b_fin', 'b_ban', 'b_ign', 'b_baners', 'b_butt', 'b_mess', 'shop_st', 'curator', 'pr1', 'pr2', 'pr3', 'pr4', 'pr5', 'gc_url', 'key_pr', 'n_con', 'canal', 'data_t', 'utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content']
1704
- values = [name, phone, email, row.get('ВКонтакте', ''), row.get('Телеграм', ''), ws_st, row.get('GetCurse', ''), row.get('Город', ''), row.get('Реплики', ''), row.get('curator', ''), row.get('Статус покупки', ''), row.get('Канал трафика', ''), data_t, row.get('Ключ PR', ''), row.get('Канал', ''), row.get('Дата', '')]
 
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)