This commit is contained in:
@@ -219,7 +219,7 @@ async def get_author_followers(_, _info, slug: str):
|
|||||||
try:
|
try:
|
||||||
with local_session() as session:
|
with local_session() as session:
|
||||||
author_alias = aliased(Author)
|
author_alias = aliased(Author)
|
||||||
author_id = session.query(author_alias).filter(author_alias.slug == slug).first()
|
author_id = session.query(author_alias.id).filter(author_alias.slug == slug).first()
|
||||||
cached = await redis.execute('GET', f'id:{author_id}:followers')
|
cached = await redis.execute('GET', f'id:{author_id}:followers')
|
||||||
results = []
|
results = []
|
||||||
if not cached:
|
if not cached:
|
||||||
|
|||||||
Reference in New Issue
Block a user