# Тест в консоли
This commit is contained in:
@@ -97,6 +97,13 @@ async def scheduled_event_loop():
|
||||
start_day = event.get("event_day", event["day"])
|
||||
start_time = get_next_datetime(now, start_day, event["event_hour"], event["event_minute"])
|
||||
|
||||
print(f"[{event['name']}]")
|
||||
print("NOW:", now)
|
||||
print("CREATE:", create_time)
|
||||
print("START:", start_time)
|
||||
print("CREATE_DAY:", create_day, "START_DAY:", start_day)
|
||||
print("-" * 40)
|
||||
|
||||
# ✅ Догоняющее окно:
|
||||
# если уже пора создать голосование (create_time наступило),
|
||||
# но событие ещё не началось
|
||||
|
||||
Reference in New Issue
Block a user