Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -218,7 +218,7 @@ def handle_incoming_request():
|
|
| 218 |
response_2 = requests.post(f"{base_url}/email/lists/{list_id_2}/recipients", json=data_2, headers=headers_2)
|
| 219 |
|
| 220 |
# Возвращаем список ответов
|
| 221 |
-
return {'responses': [response_1.json(), response_2.json()]}
|
| 222 |
|
| 223 |
# Лист 3
|
| 224 |
data_3 = {
|
|
@@ -252,7 +252,7 @@ def handle_incoming_request():
|
|
| 252 |
response_3 = requests.post(f"{base_url}/email/lists/{list_id_3}/recipients", json=data_3, headers=headers_3)
|
| 253 |
|
| 254 |
# Возвращаем список ответов
|
| 255 |
-
return {'responses': [response_1.json(), response_2.json()]}
|
| 256 |
|
| 257 |
elif current_day == 1: # Вторник
|
| 258 |
if current_hour < 19:
|
|
|
|
| 218 |
response_2 = requests.post(f"{base_url}/email/lists/{list_id_2}/recipients", json=data_2, headers=headers_2)
|
| 219 |
|
| 220 |
# Возвращаем список ответов
|
| 221 |
+
return {'responses': [response_1.json(), response_2, response_3.json()]}
|
| 222 |
|
| 223 |
# Лист 3
|
| 224 |
data_3 = {
|
|
|
|
| 252 |
response_3 = requests.post(f"{base_url}/email/lists/{list_id_3}/recipients", json=data_3, headers=headers_3)
|
| 253 |
|
| 254 |
# Возвращаем список ответов
|
| 255 |
+
return {'responses': [response_1.json(), response_2, response_3.json()]}
|
| 256 |
|
| 257 |
elif current_day == 1: # Вторник
|
| 258 |
if current_hour < 19:
|