DmitrMakeev
commited on
Commit
•
3a7861c
1
Parent(s):
f9e8343
Update app.py
Browse files
app.py
CHANGED
@@ -718,7 +718,7 @@ def data_gc_tab_out():
|
|
718 |
cursor.execute('''
|
719 |
SELECT id, name, phone, email, vk_id, chat_id, ws_st, ws_stop, web_st, fin_prog,
|
720 |
b_city, b_fin, b_ban, b_ign, b_baners, b_butt, b_mess, shop_st, curator,
|
721 |
-
pr1, pr2, pr3, pr4, pr5, ad_url, key_pr, n_con, canal, data_t
|
722 |
FROM contacts
|
723 |
''')
|
724 |
contacts = cursor.fetchall()
|
@@ -732,7 +732,8 @@ def data_gc_tab_out():
|
|
732 |
'b_mess': contact[16], 'shop_st': contact[17], 'curator': contact[18], 'pr1': contact[19],
|
733 |
'pr2': contact[20], 'pr3': contact[21], 'pr4': contact[22], 'pr5': contact[23],
|
734 |
'ad_url': contact[24], 'key_pr': contact[25], 'n_con': contact[26], 'canal': contact[27],
|
735 |
-
'data_t': contact[28]
|
|
|
736 |
} for contact in contacts]
|
737 |
return jsonify(contacts_json), 200
|
738 |
except Exception as e:
|
|
|
718 |
cursor.execute('''
|
719 |
SELECT id, name, phone, email, vk_id, chat_id, ws_st, ws_stop, web_st, fin_prog,
|
720 |
b_city, b_fin, b_ban, b_ign, b_baners, b_butt, b_mess, shop_st, curator,
|
721 |
+
pr1, pr2, pr3, pr4, pr5, ad_url, key_pr, n_con, canal, data_t, utm_source, utm_medium, utm_campaign, utm_term, utm_content
|
722 |
FROM contacts
|
723 |
''')
|
724 |
contacts = cursor.fetchall()
|
|
|
732 |
'b_mess': contact[16], 'shop_st': contact[17], 'curator': contact[18], 'pr1': contact[19],
|
733 |
'pr2': contact[20], 'pr3': contact[21], 'pr4': contact[22], 'pr5': contact[23],
|
734 |
'ad_url': contact[24], 'key_pr': contact[25], 'n_con': contact[26], 'canal': contact[27],
|
735 |
+
'data_t': contact[28],'utm_source': contact[29], 'utm_medium': contact[30], 'utm_campaign': contact[31],
|
736 |
+
'utm_term': contact[32], 'utm_content': contact[33]
|
737 |
} for contact in contacts]
|
738 |
return jsonify(contacts_json), 200
|
739 |
except Exception as e:
|