Skip to content

Commit

Permalink
Update scenario/state.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Hoyt <[email protected]>
  • Loading branch information
PietroPasotti and benhoyt authored Oct 25, 2023
1 parent e03c084 commit cbc31f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scenario/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ def get_relations(self, endpoint: str) -> Tuple["AnyRelation", ...]:

def get_storages(self, name: str) -> Tuple["Storage", ...]:
"""Get all storages with this name."""
return tuple(filter(lambda s: s.name == name, self.storage))
return tuple(s for s in self.storage if s.name == name)

# FIXME: not a great way to obtain a delta, but is "complete". todo figure out a better way.
def jsonpatch_delta(self, other: "State"):
Expand Down

0 comments on commit cbc31f7

Please sign in to comment.