mirror of
https://github.com/open-webui/open-webui
synced 2025-05-31 11:00:49 +00:00
Fix formatting again
This commit is contained in:
parent
e06ff17a70
commit
8609ca3657
@ -201,9 +201,9 @@ async def list_files(user=Depends(get_verified_user), content: bool = Query(True
|
|||||||
async def search_files(
|
async def search_files(
|
||||||
filename: str = Query(
|
filename: str = Query(
|
||||||
...,
|
...,
|
||||||
description="Filename pattern to search for. Supports wildcards such as '*.txt'"
|
description="Filename pattern to search for. Supports wildcards such as '*.txt'",
|
||||||
),
|
),
|
||||||
user=Depends(get_verified_user)
|
user=Depends(get_verified_user),
|
||||||
):
|
):
|
||||||
# Retrieve files from cache
|
# Retrieve files from cache
|
||||||
files = get_all_files_for_user(user.id, user.role == "admin")
|
files = get_all_files_for_user(user.id, user.role == "admin")
|
||||||
|
Loading…
Reference in New Issue
Block a user