DmitrMakeev commited on
Commit
3d64fc1
1 Parent(s): 568706e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -180,8 +180,11 @@ def add_data_gc():
180
  return f"Contact with phone {phone} or email {email} already exists."
181
 
182
  cursor.execute('''
183
- INSERT INTO contacts (name, phone, email, ws_statys, ws_stop, web_statys, fin_progress, shop_statys, curator, partner, pr1, pr2, pr3)
184
- VALUES (?, ?, ?, 0, 0, 0, 0, '', '', '', '', '', '')
 
 
 
185
  ''', (name, phone, email))
186
  conn.commit()
187
  conn.close()
@@ -192,6 +195,9 @@ def add_data_gc():
192
  return "Internal Server Error", 500
193
 
194
 
 
 
 
195
  @app.route('/add_data_ras', methods=['GET'])
196
  def add_contact():
197
  try:
 
180
  return f"Contact with phone {phone} or email {email} already exists."
181
 
182
  cursor.execute('''
183
+ INSERT INTO contacts (
184
+ name, phone, email, vk_id, chat_id, ws_statys, ws_stop, web_statys, fin_progress,
185
+ shop_statys_full, curator, shop_statys_cur, partner, pr1, pr2, pr3, pr4, pr5, ad_url
186
+ )
187
+ VALUES (?, ?, ?, '', '', '', '', 0, 0, '', '', '', '', '', '', '', '', '', '')
188
  ''', (name, phone, email))
189
  conn.commit()
190
  conn.close()
 
195
  return "Internal Server Error", 500
196
 
197
 
198
+
199
+
200
+
201
  @app.route('/add_data_ras', methods=['GET'])
202
  def add_contact():
203
  try: