DmitrMakeev commited on
Commit
842bd8b
1 Parent(s): cd1a092

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -17
app.py CHANGED
@@ -744,23 +744,6 @@ def data_gc_tab_out():
744
 
745
 
746
 
747
- app.route('/send_request', methods=['POST'])
748
- def send_request():
749
- token = request.form.get('token')
750
- min_date = request.form.get('minDate')
751
- limit = request.form.get('limit', '20')
752
- webinar_type = request.form.get('type', 'LiveWebinars')
753
- url = f'https://online.bizon365.ru/api/v1/webinars/reports/getlist?minDate={min_date}&limit={limit}&type={webinar_type}'
754
-
755
- response = requests.get(url, headers={'X-Token': token})
756
-
757
- if response.status_code == 200:
758
- data = response.json()
759
- webinar_ids = [item['webinarId'] for item in data['list']]
760
- return jsonify(webinar_ids)
761
- else:
762
- return jsonify({'error': 'Failed to fetch data from the API'}), response.status_code
763
-
764
 
765
 
766
 
@@ -815,6 +798,7 @@ def update_or_insert_user(db_name, user_data, mapping_template):
815
 
816
  conn.commit()
817
  conn.close()
 
818
 
819
  @app.route('/send_request', methods=['POST'])
820
  def send_request():
 
744
 
745
 
746
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
747
 
748
 
749
 
 
798
 
799
  conn.commit()
800
  conn.close()
801
+ logging.debug(f"User with email {email} processed successfully")
802
 
803
  @app.route('/send_request', methods=['POST'])
804
  def send_request():