mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 18:09:33 +00:00
fix type
This commit is contained in:
@@ -45,7 +45,7 @@ class QueryBuilder:
|
||||
|
||||
type_parsed = getattr(PlaylistTypesEnum, playlist_type.upper()).value
|
||||
|
||||
return {"match": {"playlist_types": type_parsed}}
|
||||
return {"match": {"playlist_type": type_parsed}}
|
||||
|
||||
def parse_sort(self) -> dict:
|
||||
"""return sort"""
|
||||
|
||||
@@ -27,4 +27,4 @@ def test_parse_type():
|
||||
qb.parse_type("invalid")
|
||||
|
||||
result = qb.parse_type("custom")
|
||||
assert result == {"match": {"playlist_type.keyword": "custom"}}
|
||||
assert result == {"match": {"playlist_type": "custom"}}
|
||||
|
||||
Reference in New Issue
Block a user