From ebf08ea2ed4f691b4b1a27125016fa1397aa77c0 Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 11 Mar 2024 16:17:52 +0300 Subject: [PATCH] clean --- resolvers/follower.py | 3 +-- schema/enum.graphql | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/resolvers/follower.py b/resolvers/follower.py index e43b3efd..b56f0b94 100644 --- a/resolvers/follower.py +++ b/resolvers/follower.py @@ -53,8 +53,7 @@ async def follow(_, info, what, slug): elif what == 'TOPIC': if not topic_follow(follower.id, slug): return {"error": "cant follow topic"} - topic_query = select(Topic).where(Topic.slug == slug) - [topic] = get_with_stat(topic_query) + [topic] = get_with_stat(select(Topic).where(Topic.slug == slug)) if not topic: return {"error": "topic is not found"} follows = await update_follows_for_author(follower, 'topic', topic, True) diff --git a/schema/enum.graphql b/schema/enum.graphql index 04f22a8c..f4e472e9 100644 --- a/schema/enum.graphql +++ b/schema/enum.graphql @@ -36,8 +36,8 @@ enum ReactionKind { enum FollowingEntity { TOPIC AUTHOR + SHOUT COMMUNITY - REACTIONS } enum InviteStatus {