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