Skip to content

Commit

Permalink
Update filter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
marcantondahmen committed Dec 2, 2020
1 parent 9f8de9a commit 86c8ee4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions revitron/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,9 @@ def byRegex(self, paramName, regex, invert = False):
excluded = passed
else:
excluded = failed

self.collector = self.collector.Excluding(List[revitron.DB.ElementId](excluded))

if excluded:
self.collector = self.collector.Excluding(List[revitron.DB.ElementId](excluded))

return self

Expand Down

0 comments on commit 86c8ee4

Please sign in to comment.