Skip to content

Commit

Permalink
astri and quare
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelErsh committed Apr 3, 2024
1 parent 4421a6b commit cb65ea6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions async_api/src/services/film.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ async def get_list(
sort_order: SortOrder | None = None,
genre: str | None = None,
) -> list[Film]:
query: dict[str, dict[str, dict[str, str | dict[str, str]]]]
query = {"match_all": {}}
if genre:
query = {"bool": {"filter": {"term": {"genres.name.keyword": genre}}}}
Expand Down
1 change: 1 addition & 0 deletions async_api/src/services/person.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ async def get_or_none(self, person_id: PersonID) -> Person | None:
@abstractmethod
async def search(
self,
*,
query: str | None = None,
page: int = 1,
size: int = settings.default_page_size,
Expand Down

0 comments on commit cb65ea6

Please sign in to comment.