Compare commits

..

No commits in common. "main" and "0.2.1" have entirely different histories.
main ... 0.2.1

2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
[project] [project]
name = "support_formatter" name = "support_formatter"
version = "0.2.3" version = "0.2.1"
requires-python = ">= 3.10" requires-python = ">= 3.10"
authors = [{name = "Firq", email = "firelp42@gmail.com"}] authors = [{name = "Firq", email = "firelp42@gmail.com"}]
maintainers = [{name = "Firq", email = "firelp42@gmail.com"}] maintainers = [{name = "Firq", email = "firelp42@gmail.com"}]

View file

@ -16,4 +16,4 @@ def generate_error(status: int, message: Optional[str]=None, additional_data: Op
return obj, status return obj, status
def convert_to_bool(val: str) -> bool: def convert_to_bool(val: str) -> bool:
return str(val).lower() in ("1", "true") return bool(val) if str(val).lower() not in ("null", "none") else False