From 662d5dd3d690e4389f0d7e7915d21a10bc69e4c2 Mon Sep 17 00:00:00 2001 From: Firq Date: Tue, 4 Feb 2025 15:41:45 +0000 Subject: [PATCH] Fixed bool error --- support_formatter/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support_formatter/utils.py b/support_formatter/utils.py index bf12636..c9638ad 100644 --- a/support_formatter/utils.py +++ b/support_formatter/utils.py @@ -16,4 +16,4 @@ def generate_error(status: int, message: Optional[str]=None, additional_data: Op return obj, status def convert_to_bool(val: str) -> bool: - return bool(val) if str(val).lower() not in ("null", "none") else False + return str(val).lower() in ("1", "true")