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