From 8a824d3d233639f9d30078997ee55da65f06c1f6 Mon Sep 17 00:00:00 2001 From: Untone Date: Tue, 28 Nov 2023 23:08:22 +0300 Subject: [PATCH] comment --- services/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/auth.py b/services/auth.py index f6f1056..c071944 100644 --- a/services/auth.py +++ b/services/auth.py @@ -44,7 +44,7 @@ def login_required(f): if not is_authenticated: raise Exception("You are not logged in") else: - # Добавляем author_id в контекст + # Добавляем author_id и user_id в контекст with local_session() as session: author = session.query(Author).filter(Author.user == user_id).first() if author: