notifications-stats-todo
All checks were successful
Deploy on push / deploy (push) Successful in 8m16s

This commit is contained in:
2025-09-16 12:52:14 +03:00
parent 24a1f181b9
commit 634cec657c
4 changed files with 7 additions and 6 deletions

View File

@@ -216,7 +216,7 @@ async def unfollow(
logger.error(f"Неверный тип для отписки: {what}")
return {"error": "invalid unfollow type"}
entity_class, follower_class, get_cached_follows_method, cache_method = entity_classes[what]
entity_class, follower_class, get_cached_follows_method, _cache_method = entity_classes[what]
entity_type = what.lower()
follows: list[dict[str, Any]] = []

View File

@@ -105,7 +105,8 @@ def get_notifications_grouped(author_id: int, after: int = 0, limit: int = 10, o
authors: List[NotificationAuthor], # List of authors involved in the thread.
}
"""
total, unread, notifications = query_notifications(author_id, after)
# TODO: use all stats
_total, _unread, notifications = query_notifications(author_id, after)
groups_by_thread = {}
groups_amount = 0