DmitrMakeev
commited on
Commit
•
02d7ffc
1
Parent(s):
2a0818e
Update app.py
Browse files
app.py
CHANGED
@@ -702,20 +702,6 @@ def data_gc_tab_out():
|
|
702 |
|
703 |
|
704 |
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
|
720 |
|
721 |
|
@@ -776,6 +762,20 @@ def send_get_request():
|
|
776 |
|
777 |
|
778 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
779 |
|
780 |
|
781 |
|
@@ -795,19 +795,6 @@ def biz_v():
|
|
795 |
return "EUR 22", 200
|
796 |
return render_template('biz_v.html')
|
797 |
|
798 |
-
@app.route('/send_request', methods=['POST'])
|
799 |
-
def send_request():
|
800 |
-
token = request.form.get('token')
|
801 |
-
url = 'https://online.bizon365.ru/api/v1/webinars/reports/getlist?minDate=2021-08-06T00:00:00'
|
802 |
-
|
803 |
-
response = requests.get(url, headers={'X-Token': token})
|
804 |
-
|
805 |
-
if response.status_code == 200:
|
806 |
-
data = response.json()
|
807 |
-
webinar_ids = [item['webinarId'] for item in data['list']]
|
808 |
-
return jsonify(webinar_ids)
|
809 |
-
else:
|
810 |
-
return jsonify({'error': 'Failed to fetch data from the API'}), response.status_code
|
811 |
|
812 |
|
813 |
|
|
|
702 |
|
703 |
|
704 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
705 |
|
706 |
|
707 |
|
|
|
762 |
|
763 |
|
764 |
|
765 |
+
|
766 |
+
|
767 |
+
|
768 |
+
|
769 |
+
|
770 |
+
|
771 |
+
|
772 |
+
|
773 |
+
|
774 |
+
|
775 |
+
|
776 |
+
|
777 |
+
|
778 |
+
|
779 |
|
780 |
|
781 |
|
|
|
795 |
return "EUR 22", 200
|
796 |
return render_template('biz_v.html')
|
797 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
798 |
|
799 |
|
800 |
|