DmitrMakeev
commited on
Commit
•
2ff4383
1
Parent(s):
ad918f5
Update app.py
Browse files
app.py
CHANGED
@@ -509,6 +509,112 @@ def show_data_ras():
|
|
509 |
|
510 |
|
511 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
512 |
@app.route('/ver', methods=['GET'])
|
513 |
def veref():
|
514 |
api_sys_control = request.args.get('api_sys')
|
|
|
509 |
|
510 |
|
511 |
|
512 |
+
|
513 |
+
|
514 |
+
|
515 |
+
|
516 |
+
|
517 |
+
|
518 |
+
|
519 |
+
|
520 |
+
|
521 |
+
|
522 |
+
|
523 |
+
|
524 |
+
|
525 |
+
|
526 |
+
|
527 |
+
|
528 |
+
|
529 |
+
|
530 |
+
|
531 |
+
|
532 |
+
|
533 |
+
|
534 |
+
|
535 |
+
|
536 |
+
|
537 |
+
|
538 |
+
|
539 |
+
|
540 |
+
|
541 |
+
|
542 |
+
|
543 |
+
|
544 |
+
|
545 |
+
|
546 |
+
|
547 |
+
|
548 |
+
|
549 |
+
|
550 |
+
|
551 |
+
|
552 |
+
|
553 |
+
|
554 |
+
|
555 |
+
|
556 |
+
|
557 |
+
|
558 |
+
|
559 |
+
|
560 |
+
|
561 |
+
|
562 |
+
|
563 |
+
|
564 |
+
|
565 |
+
|
566 |
+
|
567 |
+
|
568 |
+
|
569 |
+
|
570 |
+
|
571 |
+
|
572 |
+
@app.route('/biz_v', methods=['GET'])
|
573 |
+
def biz_v():
|
574 |
+
api_sys_control = request.args.get('api_sys')
|
575 |
+
if api_sys_control != api_key_sys:
|
576 |
+
return "EUR 22", 200
|
577 |
+
return render_template('biz_v.html')
|
578 |
+
|
579 |
+
@app.route('/send_request', methods=['POST'])
|
580 |
+
def send_request():
|
581 |
+
token = request.form.get('token')
|
582 |
+
url = 'https://online.bizon365.ru/api/v1/webinars/reports/getlist?maxDate=2021-08-06T00:00:00'
|
583 |
+
|
584 |
+
response = requests.get(url, headers={'X-Token': token})
|
585 |
+
|
586 |
+
if response.status_code == 200:
|
587 |
+
return jsonify(response.text)
|
588 |
+
else:
|
589 |
+
return jsonify({'error': 'Failed to fetch data from the API'}), response.status_code
|
590 |
+
|
591 |
+
|
592 |
+
|
593 |
+
|
594 |
+
|
595 |
+
|
596 |
+
|
597 |
+
|
598 |
+
|
599 |
+
|
600 |
+
|
601 |
+
|
602 |
+
|
603 |
+
|
604 |
+
|
605 |
+
|
606 |
+
|
607 |
+
|
608 |
+
|
609 |
+
|
610 |
+
|
611 |
+
|
612 |
+
|
613 |
+
|
614 |
+
|
615 |
+
|
616 |
+
|
617 |
+
|
618 |
@app.route('/ver', methods=['GET'])
|
619 |
def veref():
|
620 |
api_sys_control = request.args.get('api_sys')
|