[Filters][Fixed] '_none' sometimes ignored

This commit is contained in:
Salvador E. Tropea 2024-02-14 13:52:17 -03:00
parent 693fb32b7d
commit 76b622d788
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### Fixed
- Netlist generation problems with components on the PCB but not in schematic. - Netlist generation problems with components on the PCB but not in schematic.
(#578) (#578)
- Filters: _none filter not always honored (i.e. exclude in BoM) (#580)
## [1.6.4] - 2024-02-02 ## [1.6.4] - 2024-02-02
### Added ### Added

View File

@ -342,7 +342,7 @@ class BaseFilter(RegFilter):
elif isinstance(names, str): elif isinstance(names, str):
# User provided, but only one, make a list # User provided, but only one, make a list
if names == '_none': if names == '_none':
return None return [DummyFilter()]
names = [names] names = [names]
# Here we should have a list of strings # Here we should have a list of strings
filters = [] filters = []