From ac682184085ea0781b1a0bf634fc9a79c105316e Mon Sep 17 00:00:00 2001 From: Raphael Odini Date: Thu, 14 Mar 2024 11:41:45 +0100 Subject: [PATCH] fix(products): fix filter by labels_tags (#252) --- app/crud.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/crud.py b/app/crud.py index 7e09d976..2efeefdd 100644 --- a/app/crud.py +++ b/app/crud.py @@ -190,7 +190,7 @@ def get_products_query(filters: ProductFilter | None = None) -> Select[tuple[Pro filters.categories_tags__contains = None if filters.labels_tags__contains: query = query.filter( - Product.categories_tags.contains([filters.labels_tags__contains]) + Product.labels_tags.contains([filters.labels_tags__contains]) ) filters.labels_tags__contains = None query = filters.filter(query)