فهرست منبع

chore: python formatting

Jun Siang Cheah 1 سال پیش
والد
کامیت
0e3b7a11e3
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 1 2
      backend/apps/web/models/auths.py
  2. 2 1
      backend/config.py

+ 1 - 2
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)

+ 2 - 1
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