diff --git a/backend/auth.py b/backend/auth.py index f255879..e4acbea 100644 --- a/backend/auth.py +++ b/backend/auth.py @@ -51,7 +51,7 @@ def get_session(token: str): with get_db() as conn: cur = get_cursor(conn) cur.execute( - "SELECT s.*, p.role, p.name, p.ai_enabled, p.ai_limit_day, p.export_enabled " + "SELECT s.*, p.role, p.name " "FROM sessions s JOIN profiles p ON s.profile_id=p.id " "WHERE s.token=%s AND s.expires_at > CURRENT_TIMESTAMP", (token,)