Update app.py
Browse files
app.py
CHANGED
|
@@ -301,6 +301,11 @@ def data_gc_tab():
|
|
| 301 |
|
| 302 |
|
| 303 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 304 |
@app.route('/data_gc_tab_out', methods=['GET'])
|
| 305 |
def data_gc_tab_out():
|
| 306 |
try:
|
|
@@ -313,7 +318,7 @@ def data_gc_tab_out():
|
|
| 313 |
cursor = conn.cursor()
|
| 314 |
cursor.execute('''
|
| 315 |
SELECT id, name, phone, email, vk_id, chat_id, ws_statys, ws_stop, web_statys, fin_progress,
|
| 316 |
-
shop_statys_full,
|
| 317 |
FROM contacts
|
| 318 |
''')
|
| 319 |
contacts = cursor.fetchall()
|
|
@@ -323,9 +328,8 @@ def data_gc_tab_out():
|
|
| 323 |
'id': contact[0], 'name': contact[1], 'phone': contact[2], 'email': contact[3],
|
| 324 |
'vk_id': contact[4], 'chat_id': contact[5], 'ws_statys': contact[6], 'ws_stop': contact[7],
|
| 325 |
'web_statys': contact[8], 'fin_progress': contact[9], 'shop_statys_full': contact[10],
|
| 326 |
-
'
|
| 327 |
-
'
|
| 328 |
-
'pr5': contact[18], 'ad_url': contact[19]
|
| 329 |
} for contact in contacts]
|
| 330 |
return jsonify(contacts_json), 200
|
| 331 |
except Exception as e:
|
|
@@ -338,6 +342,8 @@ def data_gc_tab_out():
|
|
| 338 |
|
| 339 |
|
| 340 |
|
|
|
|
|
|
|
| 341 |
|
| 342 |
|
| 343 |
|
|
|
|
| 301 |
|
| 302 |
|
| 303 |
|
| 304 |
+
|
| 305 |
+
|
| 306 |
+
|
| 307 |
+
|
| 308 |
+
|
| 309 |
@app.route('/data_gc_tab_out', methods=['GET'])
|
| 310 |
def data_gc_tab_out():
|
| 311 |
try:
|
|
|
|
| 318 |
cursor = conn.cursor()
|
| 319 |
cursor.execute('''
|
| 320 |
SELECT id, name, phone, email, vk_id, chat_id, ws_statys, ws_stop, web_statys, fin_progress,
|
| 321 |
+
shop_statys_full, pr1, pr2, pr3, pr4, pr5, ad_url
|
| 322 |
FROM contacts
|
| 323 |
''')
|
| 324 |
contacts = cursor.fetchall()
|
|
|
|
| 328 |
'id': contact[0], 'name': contact[1], 'phone': contact[2], 'email': contact[3],
|
| 329 |
'vk_id': contact[4], 'chat_id': contact[5], 'ws_statys': contact[6], 'ws_stop': contact[7],
|
| 330 |
'web_statys': contact[8], 'fin_progress': contact[9], 'shop_statys_full': contact[10],
|
| 331 |
+
'pr1': contact[11], 'pr2': contact[12], 'pr3': contact[13], 'pr4': contact[14],
|
| 332 |
+
'pr5': contact[15], 'ad_url': contact[16]
|
|
|
|
| 333 |
} for contact in contacts]
|
| 334 |
return jsonify(contacts_json), 200
|
| 335 |
except Exception as e:
|
|
|
|
| 342 |
|
| 343 |
|
| 344 |
|
| 345 |
+
|
| 346 |
+
|
| 347 |
|
| 348 |
|
| 349 |
|