From 625836afee0b2dee7a31d232a67f3934aae119ee Mon Sep 17 00:00:00 2001 From: Untone Date: Tue, 12 Mar 2024 16:07:21 +0300 Subject: [PATCH] authorsby-not-cached --- resolvers/author.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resolvers/author.py b/resolvers/author.py index b4eb0314..220a3222 100644 --- a/resolvers/author.py +++ b/resolvers/author.py @@ -9,7 +9,7 @@ from sqlalchemy_searchable import search from orm.author import Author, AuthorFollower from orm.shout import ShoutAuthor, ShoutTopic from orm.topic import Topic -from resolvers.stat import get_authors_with_stat_cached, author_follows_authors, author_follows_topics +from resolvers.stat import get_authors_with_stat_cached, author_follows_authors, author_follows_topics, get_with_stat from services.cache import set_author_cache, update_author_followers_cache from services.auth import login_required from services.db import local_session @@ -137,7 +137,7 @@ async def load_authors_by(_, _info, by, limit, offset): # q = q.distinct() q = q.limit(limit).offset(offset) - authors = await get_authors_with_stat_cached(q) + authors = get_with_stat(q) return authors