topics by author todo
This commit is contained in:
parent
78487199b9
commit
1cc248dca4
|
@ -22,7 +22,9 @@ async def topics_by_community(_, info, community):
|
|||
async def topics_by_author(_, info, author):
|
||||
topics = []
|
||||
with local_session() as session:
|
||||
topics = session.query(Topic).filter(Topic.community == community)
|
||||
author_shouts = session.query(Shout).filter(author in Shout.authors)
|
||||
# TODO: all the topics from author_shouts
|
||||
topics = []
|
||||
return topics
|
||||
|
||||
@mutation.field("topicSubscribe")
|
||||
|
|
Loading…
Reference in New Issue
Block a user