This commit is contained in:
Igor Lobanov
2022-12-01 14:24:05 +01:00
parent 6e80360d98
commit 8464398aaf
8 changed files with 21 additions and 23 deletions

View File

@@ -115,7 +115,7 @@ async def update_topic(_, _info, inp):
return {"topic": topic}
async def topic_follow(user, slug):
def topic_follow(user, slug):
with local_session() as session:
topic = session.query(Topic).where(Topic.slug == slug).one()
@@ -124,7 +124,7 @@ async def topic_follow(user, slug):
session.commit()
async def topic_unfollow(user, slug):
def topic_unfollow(user, slug):
with local_session() as session:
sub = (
session.query(TopicFollower).join(Topic).filter(