Skip to content

Commit

Permalink
Merge pull request #3664 from matyasselmeci/pr/fix_is_true
Browse files Browse the repository at this point in the history
Fix typo in is_true()
  • Loading branch information
matyasselmeci committed Feb 20, 2024
2 parents 622a816 + 9100874 commit 6b46e7a
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 6b46e7a

Please sign in to comment.