This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user