Compare commits

...

3 commits
0.2.1 ... main

Author SHA1 Message Date
98b2ec10fe Bumped ver 2025-02-04 15:42:10 +00:00
662d5dd3d6 Fixed bool error 2025-02-04 15:41:45 +00:00
1d3e7557b1
new ver 2025-01-20 13:56:22 +01:00
2 changed files with 2 additions and 2 deletions
pyproject.toml
support_formatter

View file

@ -1,6 +1,6 @@
[project]
name = "support_formatter"
version = "0.2.1"
version = "0.2.3"
requires-python = ">= 3.10"
authors = [{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
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")