This commit is contained in:
@@ -200,7 +200,7 @@ async def get_author_by_user_id(user_id: str):
|
||||
logger.info(f"getting author id for {user_id}")
|
||||
q = select(Author).filter(Author.user == user_id)
|
||||
author = await load_author_with_stats(q)
|
||||
await redis.execute("HSET", redis_key, author.dict())
|
||||
await redis.execute("HSET", redis_key, **author.dict())
|
||||
|
||||
return author
|
||||
|
||||
|
@@ -137,7 +137,7 @@ async def get_follows_by_user_id(user_id: str):
|
||||
|
||||
logger.debug(f"getting follows for {user_id}")
|
||||
follows = query_follows(user_id)
|
||||
await redis.execute("HSET", redis_key, follows)
|
||||
await redis.execute("HSET", redis_key, **follows)
|
||||
|
||||
return follows
|
||||
|
||||
|
Reference in New Issue
Block a user