diff --git a/app/search/services/hints.py b/app/search/services/hints.py new file mode 100644 index 0000000..062c71f --- /dev/null +++ b/app/search/services/hints.py @@ -0,0 +1,8 @@ +from search.models import Product, Category + + +def get_hints(content: str) -> str: + category = 'Unknown' + if content in list(map(lambda product: product.name, Product.objects.all())): + category = 'Name' + return category