From ff1d454bddaf6ea33f8d6e51c47a73cdd7bc553e Mon Sep 17 00:00:00 2001 From: Juan Calderon-Perez <835733+gaby@users.noreply.github.com> Date: Sun, 6 Apr 2025 13:32:51 -0400 Subject: [PATCH] Fix formatting --- backend/open_webui/routers/files.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/open_webui/routers/files.py b/backend/open_webui/routers/files.py index d876182f7..bfdb2be6a 100644 --- a/backend/open_webui/routers/files.py +++ b/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