mirror of
https://github.com/magnum-opus-tender-hack/backend.git
synced 2024-11-16 06:26:34 +03:00
9 lines
235 B
Python
9 lines
235 B
Python
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
|