fixed reminder

This commit is contained in:
2026-06-11 12:22:37 +03:00
parent 4108d737e3
commit 41cbef61a9
12 changed files with 410 additions and 59 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ import logging
from app.config import get_settings
from app.db.base import SessionLocal
from app.reminders.fire import check_due_reminders
from app.reminders.fire import process_due_reminders
logger = logging.getLogger(__name__)
@@ -26,6 +26,6 @@ async def reminders_watcher_loop() -> None:
async def _tick() -> None:
db = SessionLocal()
try:
check_due_reminders(db)
await process_due_reminders(db)
finally:
db.close()