DmitrMakeev commited on
Commit
b3d6ec4
·
verified ·
1 Parent(s): d4a78c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
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 = request.args.get('api_sys')
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