DmitrMakeev commited on
Commit
8854564
1 Parent(s): 64cc6ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -51,13 +51,13 @@ def init_db(db_name):
51
  web_statys INTEGER,
52
  fin_progress INTEGER,
53
  shop_statys_full TEXT NOT NULL,
 
54
  pr1 TEXT NOT NULL,
55
  pr2 TEXT NOT NULL,
56
  pr3 TEXT NOT NULL,
57
  pr4 TEXT NOT NULL,
58
  pr5 TEXT NOT NULL,
59
- ad_url TEXT NOT NULL,
60
- curator TEXT NOT NULL
61
  )
62
  ''')
63
  conn.commit()
@@ -102,7 +102,7 @@ def load_data_from_json():
102
  user_data.setdefault('web_st', '')
103
  user_data.setdefault('fin_prog', '')
104
  user_data.setdefault('shop_st', '')
105
- user_data.setdefault('cur', '')
106
  user_data.setdefault('pr1', '')
107
  user_data.setdefault('pr2', '')
108
  user_data.setdefault('pr3', '')
@@ -112,7 +112,7 @@ def load_data_from_json():
112
 
113
  query = '''
114
  INSERT INTO contacts (
115
- name, phone, email, vk_id, chat_id, ws_statys, ws_stop, web_statys, fin_progress, shop_statys_full, cur, pr1, pr2, pr3, pr4, pr5, ad_url
116
  ) VALUES (
117
  :Имя, :Телефон, :Email, :vk_id, :chat_id, :ws_st, :ws_stop, :web_st, :fin_prog, :shop_st, :curator, :pr1, :pr2, :pr3, :pr4, :pr5, :ad_url
118
  )
 
51
  web_statys INTEGER,
52
  fin_progress INTEGER,
53
  shop_statys_full TEXT NOT NULL,
54
+ curator TEXT NOT NULL,
55
  pr1 TEXT NOT NULL,
56
  pr2 TEXT NOT NULL,
57
  pr3 TEXT NOT NULL,
58
  pr4 TEXT NOT NULL,
59
  pr5 TEXT NOT NULL,
60
+ ad_url TEXT NOT NULL
 
61
  )
62
  ''')
63
  conn.commit()
 
102
  user_data.setdefault('web_st', '')
103
  user_data.setdefault('fin_prog', '')
104
  user_data.setdefault('shop_st', '')
105
+ user_data.setdefault('curator', '')
106
  user_data.setdefault('pr1', '')
107
  user_data.setdefault('pr2', '')
108
  user_data.setdefault('pr3', '')
 
112
 
113
  query = '''
114
  INSERT INTO contacts (
115
+ name, phone, email, vk_id, chat_id, ws_statys, ws_stop, web_statys, fin_progress, shop_statys_full, curator, pr1, pr2, pr3, pr4, pr5, ad_url
116
  ) VALUES (
117
  :Имя, :Телефон, :Email, :vk_id, :chat_id, :ws_st, :ws_stop, :web_st, :fin_prog, :shop_st, :curator, :pr1, :pr2, :pr3, :pr4, :pr5, :ad_url
118
  )