toler-none2
All checks were successful
Deploy on push / deploy (push) Successful in 5s

This commit is contained in:
Untone 2024-11-12 18:52:48 +03:00
parent f32b6a6a27
commit af2d8caebe

View File

@ -162,7 +162,8 @@ def query_with_stat(info):
.group_by(Reaction.shout)
.subquery()
)
author_id = info.context.get("author", {}).get("id") if info.context else None
author_dict = info.context.get("author") if info.context else None
author_id = author_dict.get("id") if author_dict else None
user_reaction_subquery = None
if author_id:
user_reaction_subquery = (