From 76b622d788360cd24de6da6bb70e45f00e65734f Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Wed, 14 Feb 2024 13:52:17 -0300 Subject: [PATCH] [Filters][Fixed] '_none' sometimes ignored --- CHANGELOG.md | 1 + kibot/fil_base.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 376b3f91..5d55a51e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Netlist generation problems with components on the PCB but not in schematic. (#578) +- Filters: _none filter not always honored (i.e. exclude in BoM) (#580) ## [1.6.4] - 2024-02-02 ### Added diff --git a/kibot/fil_base.py b/kibot/fil_base.py index 4612623a..58f0305f 100644 --- a/kibot/fil_base.py +++ b/kibot/fil_base.py @@ -342,7 +342,7 @@ class BaseFilter(RegFilter): elif isinstance(names, str): # User provided, but only one, make a list if names == '_none': - return None + return [DummyFilter()] names = [names] # Here we should have a list of strings filters = []