diff options
| -rw-r--r-- | generalresearch/managers/thl/product.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/generalresearch/managers/thl/product.py b/generalresearch/managers/thl/product.py index eacec5b..bdd1e60 100644 --- a/generalresearch/managers/thl/product.py +++ b/generalresearch/managers/thl/product.py @@ -499,8 +499,7 @@ class ProductManager(PostgresManager): ) """) params["supplier_tags"] = list(supplier_tags) - assert len(filters) > 0, "must pass at least 1 filter" - return "WHERE " + " AND ".join(filters), params + return "WHERE " + " AND ".join(filters) if filters else "", params def create( self, |
