This commit is contained in:
@@ -79,7 +79,7 @@ async def get_author_by_user_id(user_id: str):
|
||||
if isinstance(res, str):
|
||||
author = json.loads(res)
|
||||
if author.get('id'):
|
||||
logger.debug(f'got cached author: {author}')
|
||||
logger.debug(f'got author @{author.slug} #{author.id} cached today')
|
||||
return author
|
||||
|
||||
q = select(Author).filter(Author.user == user_id)
|
||||
|
Reference in New Issue
Block a user