Update app.py
Browse files
app.py
CHANGED
|
@@ -336,7 +336,7 @@ def data_gc_tab_out():
|
|
| 336 |
conn = sqlite3.connect('data_gc.db')
|
| 337 |
cursor = conn.cursor()
|
| 338 |
cursor.execute('''
|
| 339 |
-
SELECT id, name, phone, email,
|
| 340 |
shop_statys_full, pr1, pr2, pr3, pr4, pr5, ad_url
|
| 341 |
FROM contacts
|
| 342 |
''')
|
|
@@ -345,10 +345,10 @@ def data_gc_tab_out():
|
|
| 345 |
|
| 346 |
contacts_json = [{
|
| 347 |
'id': contact[0], 'name': contact[1], 'phone': contact[2], 'email': contact[3],
|
| 348 |
-
'
|
| 349 |
-
'web_statys': contact[
|
| 350 |
-
'pr1': contact[
|
| 351 |
-
'pr5': contact[
|
| 352 |
} for contact in contacts]
|
| 353 |
return jsonify(contacts_json), 200
|
| 354 |
except Exception as e:
|
|
|
|
| 336 |
conn = sqlite3.connect('data_gc.db')
|
| 337 |
cursor = conn.cursor()
|
| 338 |
cursor.execute('''
|
| 339 |
+
SELECT id, name, phone, email, vk_id, chat_id, ws_statys, ws_stop, web_statys, fin_progress,
|
| 340 |
shop_statys_full, pr1, pr2, pr3, pr4, pr5, ad_url
|
| 341 |
FROM contacts
|
| 342 |
''')
|
|
|
|
| 345 |
|
| 346 |
contacts_json = [{
|
| 347 |
'id': contact[0], 'name': contact[1], 'phone': contact[2], 'email': contact[3],
|
| 348 |
+
'vk_id': contact[4], 'chat_id': contact[5], 'ws_statys': contact[6], 'ws_stop': contact[7],
|
| 349 |
+
'web_statys': contact[8], 'fin_progress': contact[9], 'shop_statys_full': contact[10],
|
| 350 |
+
'pr1': contact[11], 'pr2': contact[12], 'pr3': contact[13], 'pr4': contact[14],
|
| 351 |
+
'pr5': contact[15], 'ad_url': contact[16]
|
| 352 |
} for contact in contacts]
|
| 353 |
return jsonify(contacts_json), 200
|
| 354 |
except Exception as e:
|