same-rating-fox
All checks were successful
Deploy on push / deploy (push) Successful in 23s

This commit is contained in:
Untone 2024-05-04 23:48:55 +03:00
parent b2f7b06a93
commit dc791d4e7a

View File

@ -182,7 +182,7 @@ def prepare_new_rating(reaction: dict, shout_id: int, session, author_id: int):
q = q.filter(Reaction.reply_to == reply_to)
rating_reactions = session.execute(q).all()
same_rating = filter(
lambda r: r.created_by == author_id and r.kind == opposite_kind,
lambda r: r.created_by == author_id and r.kind == kind,
rating_reactions,
)
opposite_rating = filter(