notifications-fix
Some checks failed
Deploy on push / deploy (push) Failing after 4m18s

This commit is contained in:
2025-08-21 12:00:46 +03:00
parent 4d36a1a5a7
commit 343c60f608

View File

@@ -36,7 +36,6 @@ def query_notifications(author_id: int, after: int = 0) -> tuple[int, int, list[
# Convert Unix timestamp to datetime for PostgreSQL compatibility
after_datetime = datetime.fromtimestamp(after, tz=UTC)
q = q.where(Notification.created_at > after_datetime)
q = q.group_by(NotificationSeen.notification, Notification.created_at)
with local_session() as session:
# Build query conditions