notifications-stats-todo
All checks were successful
Deploy on push / deploy (push) Successful in 8m16s
All checks were successful
Deploy on push / deploy (push) Successful in 8m16s
This commit is contained in:
@@ -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]] = []
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user