aliased-fix
All checks were successful
Deploy on push / deploy (push) Successful in 1m45s

This commit is contained in:
2024-02-25 13:54:28 +03:00
parent c863dda81b
commit fc0e4bb2df
2 changed files with 19 additions and 27 deletions

View File

@@ -431,9 +431,7 @@ async def load_shouts_random_top(_, _info, options):
func.sum(
case(
(Reaction.kind == str(ReactionKind.LIKE.value), 1),
(Reaction.kind == str(ReactionKind.AGREE.value), 1),
(Reaction.kind == str(ReactionKind.DISLIKE.value), -1),
(Reaction.kind == str(ReactionKind.DISAGREE.value), -1),
else_=0,
)
)