This commit is contained in:
parent
a3514e6874
commit
472801199c
|
@ -160,7 +160,7 @@ async def get_cached_author_followers(author_id: int):
|
|||
.all()
|
||||
)
|
||||
|
||||
await redis.execute("SET", rkey, json.dumps(followers))
|
||||
await redis.execute("SET", rkey, json.dumps([x for x in followers]))
|
||||
|
||||
followers_objects = []
|
||||
for follower_id in followers:
|
||||
|
@ -193,7 +193,7 @@ async def get_cached_topic_followers(topic_id: int):
|
|||
)
|
||||
followers_objects = []
|
||||
if followers:
|
||||
await redis.execute("SET", rkey, json.dumps(followers))
|
||||
await redis.execute("SET", rkey, json.dumps([x for x in followers]))
|
||||
|
||||
for follower_id in followers:
|
||||
follower_str = await redis.execute("GET", f"author:id:{follower_id}")
|
||||
|
|
Loading…
Reference in New Issue
Block a user