DmitrMakeev commited on
Commit
babe67f
1 Parent(s): a0ca8e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -67,10 +67,10 @@ def init_db(db_name):
67
  email TEXT NOT NULL,
68
  vk_id TEXT NOT NULL,
69
  chat_id TEXT NOT NULL,
70
- ws_statys TEXT NOT NULL,
71
  ws_stop TEXT NOT NULL,
72
- web_statys INTEGER,
73
- fin_progress INTEGER,
74
  b_city TEXT NOT NULL,
75
  b_fin TEXT NOT NULL,
76
  b_ban TEXT NOT NULL,
@@ -276,7 +276,7 @@ def load_data_from_json(json_data):
276
 
277
  query = '''
278
  INSERT INTO contacts (
279
- name, phone, email, vk_id, chat_id, ws_statys, ws_stop, web_statys, fin_progress, b_city, b_fin, b_ban, b_ign, b_baners, b_butt, b_mess, shop_st, pr1, pr2, pr3, pr4, pr5, ad_url, curator, key_pr, n_con, canal, data_t
280
  ) VALUES (
281
  :Имя, :Телефон, :Email, :vk_id, :chat_id, :ws_st, :ws_stop, :web_st, :fin_prog, :b_city, :b_fin, :b_ban, :b_ign, :b_baners, :b_butt, :b_mess, :shop_st, :pr1, :pr2, :pr3, :pr4, :pr5, :ad_url, :curator, :key_pr, :n_con, :canal, :data_t
282
  )
 
67
  email TEXT NOT NULL,
68
  vk_id TEXT NOT NULL,
69
  chat_id TEXT NOT NULL,
70
+ ws_st TEXT NOT NULL,
71
  ws_stop TEXT NOT NULL,
72
+ web_st INTEGER,
73
+ fin_prog INTEGER,
74
  b_city TEXT NOT NULL,
75
  b_fin TEXT NOT NULL,
76
  b_ban TEXT NOT NULL,
 
276
 
277
  query = '''
278
  INSERT INTO contacts (
279
+ name, phone, email, vk_id, chat_id, ws_st, ws_stop, web_st, fin_prog, b_city, b_fin, b_ban, b_ign, b_baners, b_butt, b_mess, shop_st, pr1, pr2, pr3, pr4, pr5, ad_url, curator, key_pr, n_con, canal, data_t
280
  ) VALUES (
281
  :Имя, :Телефон, :Email, :vk_id, :chat_id, :ws_st, :ws_stop, :web_st, :fin_prog, :b_city, :b_fin, :b_ban, :b_ign, :b_baners, :b_butt, :b_mess, :shop_st, :pr1, :pr2, :pr3, :pr4, :pr5, :ad_url, :curator, :key_pr, :n_con, :canal, :data_t
282
  )