DmitrMakeev
commited on
Commit
•
b5f4679
1
Parent(s):
89c2bb0
Update app.py
Browse files
app.py
CHANGED
@@ -695,8 +695,9 @@ def data_gc_tab_out():
|
|
695 |
conn = sqlite3.connect('data_gc.db')
|
696 |
cursor = conn.cursor()
|
697 |
cursor.execute('''
|
698 |
-
SELECT id, name, phone, email, vk_id, chat_id, ws_st, ws_stop, web_st, fin_prog,
|
699 |
-
|
|
|
700 |
FROM contacts
|
701 |
''')
|
702 |
contacts = cursor.fetchall()
|
@@ -705,10 +706,12 @@ def data_gc_tab_out():
|
|
705 |
contacts_json = [{
|
706 |
'id': contact[0], 'name': contact[1], 'phone': contact[2], 'email': contact[3],
|
707 |
'vk_id': contact[4], 'chat_id': contact[5], 'ws_st': contact[6], 'ws_stop': contact[7],
|
708 |
-
'web_st': contact[8], 'fin_prog': contact[9], '
|
709 |
-
'
|
710 |
-
'
|
711 |
-
'
|
|
|
|
|
712 |
} for contact in contacts]
|
713 |
return jsonify(contacts_json), 200
|
714 |
except Exception as e:
|
@@ -718,7 +721,6 @@ def data_gc_tab_out():
|
|
718 |
|
719 |
|
720 |
|
721 |
-
|
722 |
|
723 |
|
724 |
|
|
|
695 |
conn = sqlite3.connect('data_gc.db')
|
696 |
cursor = conn.cursor()
|
697 |
cursor.execute('''
|
698 |
+
SELECT id, name, phone, email, vk_id, chat_id, ws_st, ws_stop, web_st, fin_prog,
|
699 |
+
b_city, b_fin, b_ban, b_ign, b_baners, b_butt, b_mess, shop_st, curator,
|
700 |
+
pr1, pr2, pr3, pr4, pr5, ad_url, key_pr, n_con, canal, data_t
|
701 |
FROM contacts
|
702 |
''')
|
703 |
contacts = cursor.fetchall()
|
|
|
706 |
contacts_json = [{
|
707 |
'id': contact[0], 'name': contact[1], 'phone': contact[2], 'email': contact[3],
|
708 |
'vk_id': contact[4], 'chat_id': contact[5], 'ws_st': contact[6], 'ws_stop': contact[7],
|
709 |
+
'web_st': contact[8], 'fin_prog': contact[9], 'b_city': contact[10], 'b_fin': contact[11],
|
710 |
+
'b_ban': contact[12], 'b_ign': contact[13], 'b_baners': contact[14], 'b_butt': contact[15],
|
711 |
+
'b_mess': contact[16], 'shop_st': contact[17], 'curator': contact[18], 'pr1': contact[19],
|
712 |
+
'pr2': contact[20], 'pr3': contact[21], 'pr4': contact[22], 'pr5': contact[23],
|
713 |
+
'ad_url': contact[24], 'key_pr': contact[25], 'n_con': contact[26], 'canal': contact[27],
|
714 |
+
'data_t': contact[28]
|
715 |
} for contact in contacts]
|
716 |
return jsonify(contacts_json), 200
|
717 |
except Exception as e:
|
|
|
721 |
|
722 |
|
723 |
|
|
|
724 |
|
725 |
|
726 |
|