This commit is contained in:
parent
9307fc97fb
commit
9b2db3cc1d
|
@ -134,7 +134,7 @@ async def get_cached_author_followers(author_id: int):
|
||||||
cached_author = await redis.execute("GET", f"author:id:{author_id}")
|
cached_author = await redis.execute("GET", f"author:id:{author_id}")
|
||||||
author = None
|
author = None
|
||||||
if cache_author:
|
if cache_author:
|
||||||
author = json.loads(cache_author)
|
author = json.loads(cached_author)
|
||||||
if not author:
|
if not author:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user