Compare commits
No commits in common. "main" and "0.2.1" have entirely different histories.
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
[project]
|
||||
name = "support_formatter"
|
||||
version = "0.2.3"
|
||||
version = "0.2.1"
|
||||
requires-python = ">= 3.10"
|
||||
authors = [{name = "Firq", email = "firelp42@gmail.com"}]
|
||||
maintainers = [{name = "Firq", email = "firelp42@gmail.com"}]
|
||||
|
|
|
@ -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 str(val).lower() in ("1", "true")
|
||||
return bool(val) if str(val).lower() not in ("null", "none") else False
|
||||
|
|
Loading…
Reference in a new issue