diff --git a/scheduler.py b/scheduler.py index 8fd124a..f0bc1ef 100644 --- a/scheduler.py +++ b/scheduler.py @@ -57,7 +57,7 @@ def local_now_naive() -> datetime: В БД поле match_date у тебя TIMESTAMP без timezone. Поэтому для корректного сравнения берем локальное время как naive. """ - return datetime.now(TZ)#.replace(tzinfo=None) + return datetime.now(TZ).replace(tzinfo=None) def normalize_status(value: str | None) -> str: @@ -79,7 +79,7 @@ def get_today_matches_from_db() -> list[dict]: для мониторинга. finished / cancelled можно не брать. """ now_local = datetime.now(TZ) - day_start = now_local#.replace(hour=0, minute=0, second=0, microsecond=0).replace(tzinfo=None) + day_start = now_local.replace(tzinfo=None) day_end = day_start + timedelta(days=1) query = """