[Filters][Fixed] '_none' sometimes ignored
This commit is contained in:
parent
693fb32b7d
commit
76b622d788
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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 = []
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue