mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-19 21:16:56 +01:00
Fix: replace strtobool
This commit is contained in:
parent
497fdcaf4e
commit
434b1e3245
2 changed files with 12 additions and 5 deletions
|
|
@ -121,3 +121,10 @@ def run_subprocess(
|
|||
completed_proc.check_returncode()
|
||||
|
||||
return completed_proc
|
||||
|
||||
|
||||
def get_boolean(boolstr: str) -> bool:
|
||||
"""
|
||||
Return a boolean value from a string representation.
|
||||
"""
|
||||
return bool(boolstr.lower() in ("yes", "y", "1", "t", "true"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue