mirror of
https://github.com/etienne-hd/lbc.git
synced 2026-05-01 03:06:28 +02:00
fix: correct enum key assignment in search payload builder
This commit is contained in:
@@ -119,7 +119,7 @@ def build_search_payload_with_args(
|
|||||||
}
|
}
|
||||||
# Enum
|
# Enum
|
||||||
elif all(isinstance(x, str) for x in value):
|
elif all(isinstance(x, str) for x in value):
|
||||||
payload["filters"]["enums"]["key"] = value
|
payload["filters"]["enums"][key] = value
|
||||||
else:
|
else:
|
||||||
raise InvalidValue(f"The value of '{key}' must be a list or tuple containing only integers or only strings.")
|
raise InvalidValue(f"The value of '{key}' must be a list or tuple containing only integers or only strings.")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user