DmitrMakeev commited on
Commit
43d5354
1 Parent(s): be391e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -10
app.py CHANGED
@@ -1586,12 +1586,6 @@ def add_data_ver_cur():
1586
 
1587
  user_data = {mapping_template_cur[key]: request.args.get(key, "") for key in mapping_template_cur}
1588
 
1589
- # Проверка наличия обязательных полей
1590
- if not user_data.get('email'):
1591
- return jsonify({'status': 'error', 'message': 'Missing email in contact data'}), 400
1592
- if not user_data.get('name'):
1593
- return jsonify({'status': 'error', 'message': 'Missing name in contact data'}), 400
1594
-
1595
  if curator_on_off == "1":
1596
  user_data['curator'] = curators[current_curator_index]
1597
 
@@ -1604,10 +1598,6 @@ def add_data_ver_cur():
1604
  add_or_update_contact(user_data)
1605
  if curator_on_off == "1":
1606
  current_curator_index = (current_curator_index + 1) % len(curators)
1607
-
1608
- # Отправка данных в Google Forms
1609
- send_to_google_forms(user_data, gog_url)
1610
-
1611
  return jsonify({'status': 'success', 'message': f'User added with curator {user_data.get("curator", "not assigned")}'})
1612
  except Exception as e:
1613
  logging.error(f"Error adding user: {e}")
 
1586
 
1587
  user_data = {mapping_template_cur[key]: request.args.get(key, "") for key in mapping_template_cur}
1588
 
 
 
 
 
 
 
1589
  if curator_on_off == "1":
1590
  user_data['curator'] = curators[current_curator_index]
1591
 
 
1598
  add_or_update_contact(user_data)
1599
  if curator_on_off == "1":
1600
  current_curator_index = (current_curator_index + 1) % len(curators)
 
 
 
 
1601
  return jsonify({'status': 'success', 'message': f'User added with curator {user_data.get("curator", "not assigned")}'})
1602
  except Exception as e:
1603
  logging.error(f"Error adding user: {e}")