mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-01-12 21:44:21 -06:00
Fix: replace strtobool
This commit is contained in:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user