mirror of
https://github.com/magnum-opus-tender-hack/backend.git
synced 2024-11-15 05:56:33 +03:00
7 lines
194 B
Python
7 lines
194 B
Python
from search.models import Product
|
|
from typing import List
|
|
|
|
|
|
def process_string(text: str) -> List[dict]:
|
|
return [x.serialize_self() for x in Product.objects.filter(name__contains=text)[5:]]
|