瀏覽代碼

Fix formatting

Juan Calderon-Perez 5 月之前
父節點
當前提交
ff1d454bdd
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      backend/open_webui/routers/files.py

+ 4 - 2
backend/open_webui/routers/files.py

@@ -162,7 +162,9 @@ def upload_file(
 
 
 @router.get("/", response_model=list[FileModelResponse])
-async def list_files(user=Depends(get_verified_user), include_content: bool = Query(True)):
+async def list_files(
+    user=Depends(get_verified_user), include_content: bool = Query(True)
+):
     if user.role == "admin":
         files = Files.get_files()
     else:
@@ -170,7 +172,7 @@ async def list_files(user=Depends(get_verified_user), include_content: bool = Qu
 
     if not include_content:
         for file in files:
-            file.data['content'] = ""
+            file.data["content"] = ""
     return files