This commit is contained in:
parent
1d3e7557b1
commit
662d5dd3d6
1 changed files with 1 additions and 1 deletions
|
@ -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