Skip to content

Commit

Permalink
Fix Tags.ALL
Browse files Browse the repository at this point in the history
  • Loading branch information
neoxelox committed Apr 8, 2022
1 parent a49827a commit 05cb391
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion superinvoke/objects/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def Current(cls) -> Optional[Env]:

@classmethod
def ByTag(cls, tag) -> List[Env]:
return [env for env in cls.All if tag in env.tags]
return [env for env in cls.All if tag in env.tags or Tags.ALL in env.tags]

@classmethod
def ByName(cls, name) -> Optional[Env]:
Expand Down
2 changes: 1 addition & 1 deletion superinvoke/objects/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def All(cls) -> List[Tool]:

@classmethod
def ByTag(cls, tag) -> List[Tool]:
return [tool for tool in cls.All if tag in tool.tags]
return [tool for tool in cls.All if tag in tool.tags or Tags.ALL in tool.tags]

@classmethod
def ByName(cls, name) -> Optional[Tool]:
Expand Down

0 comments on commit 05cb391

Please sign in to comment.