Update app.py
Browse files
app.py
CHANGED
@@ -1849,11 +1849,8 @@ def registrations_period():
|
|
1849 |
# Маршрут для отображения страницы с графиком за период
|
1850 |
@app.route('/show_registrations_period', methods=['GET'])
|
1851 |
def show_registrations_period():
|
1852 |
-
api_sys_control
|
1853 |
-
|
1854 |
-
# Проверяем значение параметра `api_sys_control`
|
1855 |
-
if api_sys_control != 'your_api_key_here': # Замените `your_api_key_here` на ваш ключ
|
1856 |
-
return jsonify({'error': 'Access denied: Invalid API key'}), 403
|
1857 |
|
1858 |
return render_template('registrations_period.html')
|
1859 |
|
|
|
1849 |
# Маршрут для отображения страницы с графиком за период
|
1850 |
@app.route('/show_registrations_period', methods=['GET'])
|
1851 |
def show_registrations_period():
|
1852 |
+
if api_sys_control != api_key_sys:
|
1853 |
+
return "EUR 22", 200
|
|
|
|
|
|
|
1854 |
|
1855 |
return render_template('registrations_period.html')
|
1856 |
|