Skip to content

Commit

Permalink
fix(products): fix filter by labels_tags (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn authored Mar 14, 2024
1 parent e611b11 commit ac68218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ac68218

Please sign in to comment.