From 1972e34839a35a421daf34e06c75677190172e2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20N=C3=B8rgaard?= Date: Tue, 15 Nov 2022 22:48:58 +0000 Subject: [PATCH] handle enum values properly in query builder --- hondana/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hondana/utils.py b/hondana/utils.py index d007413..3a2a96e 100644 --- a/hondana/utils.py +++ b/hondana/utils.py @@ -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)