From dff46d371757f7ef60009ee8db60dd8c43ac492e Mon Sep 17 00:00:00 2001 From: Alexandr Karpov Date: Sat, 22 Oct 2022 18:21:42 +0300 Subject: [PATCH] fixed hints --- app/search/services/hints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/search/services/hints.py b/app/search/services/hints.py index a6c7765..7763a0b 100644 --- a/app/search/services/hints.py +++ b/app/search/services/hints.py @@ -2,7 +2,7 @@ from search.models import Product, Category, Characteristic def get_hints(content: str) -> str: - category = "Unknown" + category = "All" if content in list(map(lambda product: product.name, Product.objects.all())): category = "Name" elif content in list(map(lambda category: category.name, Category.objects.all())):