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")