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

This commit is contained in:
Untone 2024-11-01 14:09:22 +03:00
parent 8ad00f0fa5
commit 3a5297015f

View File

@ -52,6 +52,7 @@ def query_with_stat(info):
func.coalesce(
func.sum(
case(
(Reaction.reply_to.is_not(None), 0),
(Reaction.kind == ReactionKind.LIKE.value, 1),
(Reaction.kind == ReactionKind.DISLIKE.value, -1),
else_=0,