DmitrMakeev commited on
Commit
e0bdf0b
·
verified ·
1 Parent(s): 2e9e943

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -80,6 +80,7 @@ def init_db(db_name):
80
  pr5 TEXT NOT NULL,
81
  ad_url TEXT NOT NULL,
82
  key_pr TEXT NOT NULL,
 
83
  canal TEXT NOT NULL,
84
  data_t TEXT NOT NULL
85
  )
@@ -261,9 +262,9 @@ def load_data_from_json(json_data):
261
 
262
  query = '''
263
  INSERT INTO contacts (
264
- name, phone, email, vk_id, chat_id, ws_statys, ws_stop, web_statys, fin_progress, shop_statys_full, pr1, pr2, pr3, pr4, pr5, ad_url, curator, key_pr, canal, data_t
265
  ) VALUES (
266
- :Имя, :Телефон, :Email, :vk_id, :chat_id, :ws_st, :ws_stop, :web_st, :fin_prog, :shop_st, :pr1, :pr2, :pr3, :pr4, :pr5, :ad_url, :curator, :key_pr, :canal, :data_t
267
  )
268
  '''
269
  cursor.execute(query, user_data)
 
80
  pr5 TEXT NOT NULL,
81
  ad_url TEXT NOT NULL,
82
  key_pr TEXT NOT NULL,
83
+ n_zak TEXT NOT NULL,
84
  canal TEXT NOT NULL,
85
  data_t TEXT NOT NULL
86
  )
 
262
 
263
  query = '''
264
  INSERT INTO contacts (
265
+ name, phone, email, vk_id, chat_id, ws_statys, ws_stop, web_statys, fin_progress, shop_statys_full, pr1, pr2, pr3, pr4, pr5, ad_url, curator, key_pr, n_zak, canal, data_t
266
  ) VALUES (
267
+ :Имя, :Телефон, :Email, :vk_id, :chat_id, :ws_st, :ws_stop, :web_st, :fin_prog, :shop_st, :pr1, :pr2, :pr3, :pr4, :pr5, :ad_url, :curator, :key_pr, :n_zak, :canal, :data_t
268
  )
269
  '''
270
  cursor.execute(query, user_data)