Skip to content

Commit

Permalink
Fixup to 'make survey optional'
Browse files Browse the repository at this point in the history
  • Loading branch information
kfindeisen committed Nov 15, 2024
1 parent c1655d9 commit b42abaa
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions python/activator/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,9 @@ def matches(self, visit: FannedOutVisit) -> bool:
matches : `bool`
`True` if the visit meets all conditions, `False` otherwise.
"""
match = True
if self._survey is not None:
match &= self._survey == visit.survey
return match
if self._survey is not None and self._survey != visit.survey:
return False
return True

@property
def pipeline_files(self) -> collections.abc.Sequence[str]:
Expand Down

0 comments on commit b42abaa

Please sign in to comment.