Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed bug that prevented "download all" functionality #474

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bindings/python/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def update(self):
pass

@abstractmethod
def models(self) -> t.List[str]:
def models(self, filter_downloaded: bool = True) -> t.List[str]:
"""returns identifiers for available models"""
pass

Expand Down Expand Up @@ -204,7 +204,7 @@ def modelConfigPath(self, name: str, code: str) -> PathLike:
)

def models(self, name: str, filter_downloaded: bool = True) -> t.List[str]:
return self.repositories.get(name, self.default_repository).models()
return self.repositories.get(name, self.default_repository).models(filter_downloaded)

def model(self, name: str, model_identifier: str) -> t.Any:
return self.repositories.get(name, self.default_repository).model(
Expand Down