cached-request-6
All checks were successful
deploy / deploy (push) Successful in 1m4s

This commit is contained in:
Untone 2023-12-19 19:26:15 +03:00
parent c90e68d3ae
commit 2658cd323b

View File

@ -60,6 +60,8 @@ def login_required(f):
user_id = await check_auth(req) user_id = await check_auth(req)
if user_id: if user_id:
context["user_id"] = user_id context["user_id"] = user_id
if not cached_authors:
get_all_authors()
authors_by_user, authors_by_id = cached_authors authors_by_user, authors_by_id = cached_authors
author = authors_by_user.get(user_id) author = authors_by_user.get(user_id)
if author and "id" in author: if author and "id" in author: