debug-precache
All checks were successful
Deploy on push / deploy (push) Successful in 1m9s

This commit is contained in:
Untone 2024-06-06 09:56:21 +03:00
parent 1946d5eda2
commit afe710d955

View File

@ -124,6 +124,7 @@ async def precache_data():
# authors # authors
authors_by_id = {} authors_by_id = {}
authors = get_with_stat(select(Author).where(Author.user.is_not(None))) authors = get_with_stat(select(Author).where(Author.user.is_not(None)))
logger.debug(f"{len(authors)} authors connected with authorizer")
for author in authors: for author in authors:
profile = author.dict() if not isinstance(author, dict) else author profile = author.dict() if not isinstance(author, dict) else author
author_id = profile.get("id") author_id = profile.get("id")