Compare commits
3 commits
Author | SHA1 | Date | |
---|---|---|---|
98b2ec10fe | |||
662d5dd3d6 | |||
1d3e7557b1 |
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
[project]
|
[project]
|
||||||
name = "support_formatter"
|
name = "support_formatter"
|
||||||
version = "0.2.1"
|
version = "0.2.3"
|
||||||
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"}]
|
||||||
|
|
|
@ -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 bool(val) if str(val).lower() not in ("null", "none") else False
|
return str(val).lower() in ("1", "true")
|
||||||
|
|
Loading…
Reference in a new issue