logs-fix
This commit is contained in:
@@ -78,8 +78,9 @@ async def get_author_by_user_id(user_id: str):
|
||||
res = await redis.execute('GET', redis_key)
|
||||
if isinstance(res, str):
|
||||
author = json.loads(res)
|
||||
if author.get('id'):
|
||||
logger.debug(f'got author @{author.slug} #{author.id} cached today')
|
||||
author_id = author.get('id')
|
||||
if author_id:
|
||||
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