DmitrMakeev commited on
Commit
7dee7a4
1 Parent(s): f0880fb

Update app.py

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