DmitrMakeev
commited on
Commit
•
7e4b5bf
1
Parent(s):
6acb459
Update app.py
Browse files
app.py
CHANGED
@@ -591,7 +591,7 @@ def data_gc_tab_out():
|
|
591 |
cursor = conn.cursor()
|
592 |
cursor.execute('''
|
593 |
SELECT id, name, phone, email, vk_id, chat_id, ws_statys, ws_stop, web_statys, fin_progress,
|
594 |
-
shop_statys_full, pr1, pr2, pr3, pr4, pr5, ad_url, curator, key_pr, canal,
|
595 |
FROM contacts
|
596 |
''')
|
597 |
contacts = cursor.fetchall()
|
@@ -602,8 +602,8 @@ def data_gc_tab_out():
|
|
602 |
'vk_id': contact[4], 'chat_id': contact[5], 'ws_statys': contact[6], 'ws_stop': contact[7],
|
603 |
'web_statys': contact[8], 'fin_progress': contact[9], 'shop_statys_full': contact[10], 'curator': contact[17],
|
604 |
'pr1': contact[11], 'pr2': contact[12], 'pr3': contact[13], 'pr4': contact[14],
|
605 |
-
'pr5': contact[15], 'ad_url': contact[16], 'key_pr': contact[18], 'canal': contact[19], '
|
606 |
-
'
|
607 |
} for contact in contacts]
|
608 |
return jsonify(contacts_json), 200
|
609 |
except Exception as e:
|
|
|
591 |
cursor = conn.cursor()
|
592 |
cursor.execute('''
|
593 |
SELECT id, name, phone, email, vk_id, chat_id, ws_statys, ws_stop, web_statys, fin_progress,
|
594 |
+
shop_statys_full, pr1, pr2, pr3, pr4, pr5, ad_url, curator, key_pr, canal, n_con, data_t
|
595 |
FROM contacts
|
596 |
''')
|
597 |
contacts = cursor.fetchall()
|
|
|
602 |
'vk_id': contact[4], 'chat_id': contact[5], 'ws_statys': contact[6], 'ws_stop': contact[7],
|
603 |
'web_statys': contact[8], 'fin_progress': contact[9], 'shop_statys_full': contact[10], 'curator': contact[17],
|
604 |
'pr1': contact[11], 'pr2': contact[12], 'pr3': contact[13], 'pr4': contact[14],
|
605 |
+
'pr5': contact[15], 'ad_url': contact[16], 'key_pr': contact[18], 'canal': contact[19], 'n_con': contact[20],
|
606 |
+
'data_t': contact[21] # Поменять местами с `n_con`
|
607 |
} for contact in contacts]
|
608 |
return jsonify(contacts_json), 200
|
609 |
except Exception as e:
|