DmitrMakeev commited on
Commit
55c030e
·
verified ·
1 Parent(s): c654b6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -14,6 +14,8 @@ api_key = os.getenv('api_key') # Ваш API ключ
14
 
15
  app = Flask(__name__, template_folder="./")
16
 
 
 
17
  def init_db():
18
  conn = sqlite3.connect('data.db')
19
  cursor = conn.cursor()
@@ -119,6 +121,8 @@ def handle_incoming_request():
119
  # Возвращаем список ответов
120
  return jsonify({'responses': [response_1]})
121
 
 
 
122
 
123
 
124
  elif current_day == 1: # Вторник
 
14
 
15
  app = Flask(__name__, template_folder="./")
16
 
17
+ app = Flask(__name__, template_folder="./")
18
+
19
  def init_db():
20
  conn = sqlite3.connect('data.db')
21
  cursor = conn.cursor()
 
121
  # Возвращаем список ответов
122
  return jsonify({'responses': [response_1]})
123
 
124
+ return jsonify({'message': 'No request sent, not the correct day'}), 200
125
+
126
 
127
 
128
  elif current_day == 1: # Вторник