mirror of
https://github.com/etienne-hd/lbc.git
synced 2026-04-24 15:55:35 +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
|
# 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.")
|
||||||
|
|
||||||
return payload
|
return payload
|
||||||
Reference in New Issue
Block a user