This commit is contained in:
parent
5f4e30866f
commit
296721d2b1
|
@ -98,10 +98,7 @@ def query_follows(user_id: str):
|
||||||
Author.id,
|
Author.id,
|
||||||
Author.slug,
|
Author.slug,
|
||||||
Author.pic,
|
Author.pic,
|
||||||
Author.bio,
|
Author.bio
|
||||||
Author.shouts_stat,
|
|
||||||
Author.followers_stat,
|
|
||||||
Author.followings_stat,
|
|
||||||
])
|
])
|
||||||
.select_from(Author)
|
.select_from(Author)
|
||||||
.join(AuthorFollower, AuthorFollower.follower == author_id)
|
.join(AuthorFollower, AuthorFollower.follower == author_id)
|
||||||
|
@ -138,9 +135,6 @@ def query_follows(user_id: str):
|
||||||
Topic.id,
|
Topic.id,
|
||||||
Topic.slug,
|
Topic.slug,
|
||||||
Topic.body,
|
Topic.body,
|
||||||
Topic.shouts_stat,
|
|
||||||
Topic.authors_stat,
|
|
||||||
Topic.followers_stat,
|
|
||||||
])
|
])
|
||||||
.select_from(Topic)
|
.select_from(Topic)
|
||||||
.join(TopicFollower, TopicFollower.follower == author_id)
|
.join(TopicFollower, TopicFollower.follower == author_id)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user