Skip to content

Commit

Permalink
handle enum values properly in query builder
Browse files Browse the repository at this point in the history
  • Loading branch information
AbstractUmbra committed Nov 15, 2022
1 parent 8583a99 commit 1972e34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hondana/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def php_query_builder(
fmt.add(key, str(value).lower())
elif isinstance(value, list):
for item in value:
fmt.add(f"{key}[]", item)
fmt.add(f"{key}[]", str(item))
elif isinstance(value, dict):
for subkey, subvalue in value.items():
fmt.add(f"{key}[{subkey}]", subvalue)
Expand Down

0 comments on commit 1972e34

Please sign in to comment.