Skip to content

Commit

Permalink
feat: download_and_convert_all_legacy_dbs now returns a bool
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin committed Jul 20, 2024
1 parent 30166fd commit 5d4350e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions horde_model_reference/model_reference_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(
if download_and_convert_legacy_dbs:
self.download_and_convert_all_legacy_dbs(override_existing)

def download_and_convert_all_legacy_dbs(self, override_existing: bool = True) -> None:
def download_and_convert_all_legacy_dbs(self, override_existing: bool = True) -> bool:
"""
Download and convert all legacy model reference files.
Expand All @@ -43,7 +43,7 @@ def download_and_convert_all_legacy_dbs(self, override_existing: bool = True) ->
self._legacy_reference_download_manager.download_all_legacy_model_references(
overwrite_existing=override_existing,
)
convert_all_legacy_model_references()
return convert_all_legacy_model_references()

@property
def all_legacy_model_reference_file_paths(self) -> dict[MODEL_REFERENCE_CATEGORY, Path | None]:
Expand Down

0 comments on commit 5d4350e

Please sign in to comment.