mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-11 20:05:19 +00:00
Update folders.py
This commit is contained in:
parent
482030ff69
commit
2818b4643a
1 changed files with 3 additions and 1 deletions
|
|
@ -137,7 +137,9 @@ class FolderTable:
|
||||||
|
|
||||||
def get_all_folders(self) -> list[FolderModel]:
|
def get_all_folders(self) -> list[FolderModel]:
|
||||||
with get_db() as db:
|
with get_db() as db:
|
||||||
return [FolderModel.model_validate(folder) for folder in db.query(Folder).all()]
|
return [
|
||||||
|
FolderModel.model_validate(folder) for folder in db.query(Folder).all()
|
||||||
|
]
|
||||||
|
|
||||||
def get_folder_by_parent_id_and_user_id_and_name(
|
def get_folder_by_parent_id_and_user_id_and_name(
|
||||||
self, parent_id: Optional[str], user_id: str, name: str
|
self, parent_id: Optional[str], user_id: str, name: str
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue