refactored
Some checks failed
Deploy on push / deploy (push) Failing after 6s

This commit is contained in:
2025-08-17 17:56:31 +03:00
parent e78e12eeee
commit 9a2b792f08
98 changed files with 702 additions and 904 deletions

View File

@@ -13,7 +13,7 @@ from orm.community import Community, CommunityFollower
from orm.reaction import Reaction, ReactionKind
from orm.shout import Shout, ShoutAuthor, ShoutTopic
from orm.topic import Topic, TopicFollower
from services.db import local_session
from storage.db import local_session
from utils.logger import root_logger as logger
# Type alias for queries
@@ -434,9 +434,7 @@ def get_following_count(entity_type: str, entity_id: int) -> int:
return 0
def get_shouts_count(
author_id: int | None = None, topic_id: int | None = None, community_id: int | None = None
) -> int:
def get_shouts_count(author_id: int | None = None, topic_id: int | None = None, community_id: int | None = None) -> int:
"""Получает количество публикаций"""
try:
with local_session() as session: