Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -290,10 +290,7 @@ def handle_incoming_request():
|
|
290 |
pr2 = datas.get('pr2')
|
291 |
pr1 = datas.get('pr1')
|
292 |
|
293 |
-
|
294 |
-
insert_form_data(name, email, phone, pr5, pr4, pr3, pr2, pr1)
|
295 |
-
|
296 |
-
return "Данные успешно добавлены в базу данных."
|
297 |
|
298 |
|
299 |
# Устанавливаем временную зону Москвы
|
@@ -312,7 +309,7 @@ def handle_incoming_request():
|
|
312 |
response_2 = send_request(560832, email, phone, name, 393196, 393195, pr5, pr4, pr3, pr2, pr1, 393267, 393266, 393265, 393264, 393263)
|
313 |
response_3 = send_request(560833, email, phone, name, 393198, 393197, pr5, pr4, pr3, pr2, pr1, 393272, 393271, 393270, 393269, 393268)
|
314 |
# Возвращаем список ответов
|
315 |
-
return {'responses': [
|
316 |
|
317 |
|
318 |
elif current_day == 1: # Вторник
|
|
|
290 |
pr2 = datas.get('pr2')
|
291 |
pr1 = datas.get('pr1')
|
292 |
|
293 |
+
|
|
|
|
|
|
|
294 |
|
295 |
|
296 |
# Устанавливаем временную зону Москвы
|
|
|
309 |
response_2 = send_request(560832, email, phone, name, 393196, 393195, pr5, pr4, pr3, pr2, pr1, 393267, 393266, 393265, 393264, 393263)
|
310 |
response_3 = send_request(560833, email, phone, name, 393198, 393197, pr5, pr4, pr3, pr2, pr1, 393272, 393271, 393270, 393269, 393268)
|
311 |
# Возвращаем список ответов
|
312 |
+
return {'responses': [response_1,response_2,response_3]}
|
313 |
|
314 |
|
315 |
elif current_day == 1: # Вторник
|