From cbf6a0498bf46c241e9454902632b738d4218152 Mon Sep 17 00:00:00 2001 From: dev Date: Fri, 30 Oct 2026 05:41:05 +0000 Subject: [PATCH] Update app.py --- app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app.py b/app.py index a0cb53a..8f35a90 100644 --- a/app.py +++ b/app.py @@ -844,7 +844,7 @@ def csrf_valid() -> bool: return bool(supplied and expected and hmac.compare_digest(supplied, expected)) -def user_payload(row: sqlite3.Row) -> dict: +def user_payload(row: sqlite3.Row, settings_row: sqlite3.Row | None = None) -> dict: status = row["status"] restricted_until = parse_iso(row["restricted_until"]) if status == "restricted" and restricted_until and restricted_until <= utc_now(): @@ -857,7 +857,6 @@ def user_payload(row: sqlite3.Row) -> dict: "restricted_until": row["restricted_until"], } - def current_user() -> Optional[dict]: user_id = session.get("user_id") if not user_id: