DmitrMakeev
commited on
Commit
•
a0825c8
1
Parent(s):
69c0b8c
Update app.py
Browse files
app.py
CHANGED
@@ -586,7 +586,7 @@ def data_gc_tab_out():
|
|
586 |
cursor = conn.cursor()
|
587 |
cursor.execute('''
|
588 |
SELECT id, name, phone, email, vk_id, chat_id, ws_statys, ws_stop, web_statys, fin_progress,
|
589 |
-
shop_statys_full, pr1, pr2, pr3, pr4, pr5, ad_url, curator
|
590 |
FROM contacts
|
591 |
''')
|
592 |
contacts = cursor.fetchall()
|
@@ -597,7 +597,7 @@ def data_gc_tab_out():
|
|
597 |
'vk_id': contact[4], 'chat_id': contact[5], 'ws_statys': contact[6], 'ws_stop': contact[7],
|
598 |
'web_statys': contact[8], 'fin_progress': contact[9], 'shop_statys_full': contact[10], 'curator': contact[17],
|
599 |
'pr1': contact[11], 'pr2': contact[12], 'pr3': contact[13], 'pr4': contact[14],
|
600 |
-
'pr5': contact[15], 'ad_url': contact[16]
|
601 |
} for contact in contacts]
|
602 |
return jsonify(contacts_json), 200
|
603 |
except Exception as e:
|
@@ -608,9 +608,6 @@ def data_gc_tab_out():
|
|
608 |
|
609 |
|
610 |
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
|
615 |
|
616 |
|
|
|
586 |
cursor = conn.cursor()
|
587 |
cursor.execute('''
|
588 |
SELECT id, name, phone, email, vk_id, chat_id, ws_statys, ws_stop, web_statys, fin_progress,
|
589 |
+
shop_statys_full, pr1, pr2, pr3, pr4, pr5, ad_url, curator, key_pr, canal, data_t
|
590 |
FROM contacts
|
591 |
''')
|
592 |
contacts = cursor.fetchall()
|
|
|
597 |
'vk_id': contact[4], 'chat_id': contact[5], 'ws_statys': contact[6], 'ws_stop': contact[7],
|
598 |
'web_statys': contact[8], 'fin_progress': contact[9], 'shop_statys_full': contact[10], 'curator': contact[17],
|
599 |
'pr1': contact[11], 'pr2': contact[12], 'pr3': contact[13], 'pr4': contact[14],
|
600 |
+
'pr5': contact[15], 'ad_url': contact[16], 'key_pr': contact[18], 'canal': contact[19], 'data_t': contact[20]
|
601 |
} for contact in contacts]
|
602 |
return jsonify(contacts_json), 200
|
603 |
except Exception as e:
|
|
|
608 |
|
609 |
|
610 |
|
|
|
|
|
|
|
611 |
|
612 |
|
613 |
|