Skip to content

Commit

Permalink
Fix typo in is_true()
Browse files Browse the repository at this point in the history
  • Loading branch information
matyasselmeci committed Feb 20, 2024
1 parent bc30be8 commit 0f81b8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webapp/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def is_true(input_) -> bool:
if isinstance(input_, bytes):
input_ = input_.decode(errors="replace")
if not isinstance(input_, str):
return bool(input)
return bool(input_)
input_ = input_.lower()
return input_ in ("1", "true", "yes", "on")

Expand Down

0 comments on commit 0f81b8a

Please sign in to comment.