Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -151,7 +151,7 @@ def handle_incoming_request():
|
|
151 |
phone = datas.get('phone')
|
152 |
|
153 |
current_datetime = datetime.datetime.now()
|
154 |
-
current_day =
|
155 |
current_hour = current_datetime.hour
|
156 |
|
157 |
if current_day in [0, 4, 5, 6]: # Понедельник, Пятница, Суббота, Воскресенье
|
|
|
151 |
phone = datas.get('phone')
|
152 |
|
153 |
current_datetime = datetime.datetime.now()
|
154 |
+
current_day = current_datetime.weekday() # 0 - Понедельник, ..., 6 - Воскресенье
|
155 |
current_hour = current_datetime.hour
|
156 |
|
157 |
if current_day in [0, 4, 5, 6]: # Понедельник, Пятница, Суббота, Воскресенье
|