DmitrMakeev commited on
Commit
dc5702a
1 Parent(s): 7b699a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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, curator, 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,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
- 'curator': contact[4], 'vk_id': contact[5], 'chat_id': contact[6], 'ws_statys': contact[7], 'ws_stop': contact[8],
349
- 'web_statys': contact[9], 'fin_progress': contact[10], 'shop_statys_full': contact[11],
350
- 'pr1': contact[12], 'pr2': contact[13], 'pr3': contact[14], 'pr4': contact[15],
351
- 'pr5': contact[16], 'ad_url': contact[17]
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: