fix: unpack folder_names_and_paths error (#128)
This commit is contained in:
@@ -386,7 +386,7 @@ class Information:
|
||||
model_base_paths = utils.resolve_model_base_paths()
|
||||
for model_type in model_base_paths:
|
||||
|
||||
folders, extensions = folder_paths.folder_names_and_paths[model_type]
|
||||
folders, *others = folder_paths.folder_names_and_paths[model_type]
|
||||
for path_index, base_path in enumerate(folders):
|
||||
files = utils.recursive_search_files(base_path, request)
|
||||
|
||||
|
||||
@@ -117,7 +117,7 @@ class ModelManager:
|
||||
result = []
|
||||
|
||||
include_hidden_files = utils.get_setting_value(request, "scan.include_hidden_files", False)
|
||||
folders, extensions = folder_paths.folder_names_and_paths[folder]
|
||||
folders, *others = folder_paths.folder_names_and_paths[folder]
|
||||
|
||||
def get_file_info(entry: os.DirEntry[str], base_path: str, path_index: int):
|
||||
fullname = utils.normalize_path(entry.path).replace(f"{base_path}/", "")
|
||||
|
||||
Reference in New Issue
Block a user