DmitrMakeev commited on
Commit
adb7cc4
1 Parent(s): 3eeb6eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -7
app.py CHANGED
@@ -218,11 +218,16 @@ def add_data_gc():
218
 
219
 
220
 
221
-
 
 
 
 
 
222
 
223
 
224
  @app.route('/add_data_ras', methods=['GET'])
225
- def add_contact():
226
  try:
227
  api_sys_control = request.args.get('api_sys')
228
 
@@ -234,11 +239,11 @@ def add_contact():
234
  email = request.args.get('email')
235
  vk_id = request.args.get('vk_id', '')
236
  chat_id = request.args.get('chat_id', '')
237
- ws_statys = request.args.get('ws_statys', '')
238
  ws_stop = request.args.get('ws_stop', '')
239
- web_statys = request.args.get('web_statys', 0, type=int)
240
- fin_progress = request.args.get('fin_progress', 0, type=int)
241
- shop_statys_full = request.args.get('shop_statys_full', '')
242
  pr1 = request.args.get('pr1', '')
243
  pr2 = request.args.get('pr2', '')
244
  pr3 = request.args.get('pr3', '')
@@ -250,7 +255,7 @@ def add_contact():
250
  if not name or not phone or not email:
251
  return "Parameters 'name', 'phone', and 'email' are required.", 400
252
 
253
- # Очистка номера телефона от плюса, если он есть
254
  if phone.startswith('+'):
255
  phone = phone[1:]
256
 
@@ -287,6 +292,9 @@ def add_contact():
287
 
288
 
289
 
 
 
 
290
 
291
 
292
 
 
218
 
219
 
220
 
221
+
222
+
223
+
224
+
225
+
226
+
227
 
228
 
229
  @app.route('/add_data_ras', methods=['GET'])
230
+ def add_data_ras():
231
  try:
232
  api_sys_control = request.args.get('api_sys')
233
 
 
239
  email = request.args.get('email')
240
  vk_id = request.args.get('vk_id', '')
241
  chat_id = request.args.get('chat_id', '')
242
+ ws_statys = request.args.get('ws_st', '')
243
  ws_stop = request.args.get('ws_stop', '')
244
+ web_statys = request.args.get('web_st', 0, type=int)
245
+ fin_progress = request.args.get('fin_prog', 0, type=int)
246
+ shop_statys_full = request.args.get('shop_st', '')
247
  pr1 = request.args.get('pr1', '')
248
  pr2 = request.args.get('pr2', '')
249
  pr3 = request.args.get('pr3', '')
 
255
  if not name or not phone or not email:
256
  return "Parameters 'name', 'phone', and 'email' are required.", 400
257
 
258
+ # Clean up phone number by removing any leading plus sign
259
  if phone.startswith('+'):
260
  phone = phone[1:]
261
 
 
292
 
293
 
294
 
295
+
296
+
297
+
298
 
299
 
300