shout-id-fix

This commit is contained in:
Untone 2024-03-06 15:08:20 +03:00
parent 30f5b09a51
commit 045217c011
2 changed files with 2 additions and 2 deletions

View File

@ -428,7 +428,7 @@ async def reacted_shouts_updates(follower_id: int, limit=50, offset=0) -> List[S
.outerjoin( .outerjoin(
Reaction, Reaction,
and_( and_(
Reaction.shout_id == Shout.id, Reaction.shout == Shout.id,
Reaction.created_by == follower_id, Reaction.created_by == follower_id,
), ),
) )

View File

@ -40,7 +40,7 @@ def add_topic_stat_columns(q):
.join( .join(
Reaction, Reaction,
and_( and_(
Reaction.shout_id == Shout.id, Reaction.shout == Shout.id,
Reaction.kind == ReactionKind.COMMENT.value, Reaction.kind == ReactionKind.COMMENT.value,
Reaction.deleted_at.is_(None), Reaction.deleted_at.is_(None),
), ),