From ce90fedacbb2b7f827a8327d2971642b852e3c98 Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 6 May 2024 22:38:19 +0300 Subject: [PATCH] delete-reaction-fix --- resolvers/stat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resolvers/stat.py b/resolvers/stat.py index 0b44028f..7337a3f1 100644 --- a/resolvers/stat.py +++ b/resolvers/stat.py @@ -233,7 +233,7 @@ def author_follows_topics(author_id: int): async def update_author_stat(author_id: int): try: - author_with_stat = get_with_stat(select(Author).where(Author.id == author_id)) + [author_with_stat] = get_with_stat(select(Author).where(Author.id == author_id)) if isinstance(author_with_stat, Author): author_dict = author_with_stat.dict() await cache_author(author_dict)