From 0e3b7a11e325d6cabcfad555e7744a57692adc20 Mon Sep 17 00:00:00 2001 From: Jun Siang Cheah Date: Sun, 31 Mar 2024 22:07:43 +0100 Subject: [PATCH] chore: python formatting --- backend/apps/web/models/auths.py | 3 +-- backend/config.py | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/apps/web/models/auths.py b/backend/apps/web/models/auths.py index 26934d6e2..40efbcf2f 100644 --- a/backend/apps/web/models/auths.py +++ b/backend/apps/web/models/auths.py @@ -122,8 +122,7 @@ class AuthsTable: except: return None - def authenticate_user_by_trusted_header(self, - email: str) -> Optional[UserModel]: + def authenticate_user_by_trusted_header(self, email: str) -> Optional[UserModel]: log.info(f"authenticate_user_by_trusted_header: {email}") try: auth = Auth.get(Auth.email == email, Auth.active == True) diff --git a/backend/config.py b/backend/config.py index 41269488e..a1f565b23 100644 --- a/backend/config.py +++ b/backend/config.py @@ -349,7 +349,8 @@ WEBUI_VERSION = os.environ.get("WEBUI_VERSION", "v1.0.0-alpha.100") WEBUI_AUTH = True WEBUI_AUTH_TRUSTED_EMAIL_HEADER = os.environ.get( - "WEBUI_AUTH_TRUSTED_EMAIL_HEADER", None) + "WEBUI_AUTH_TRUSTED_EMAIL_HEADER", None +) #################################### # WEBUI_SECRET_KEY