mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-16 21:08:12 +00:00
Fix: replace strtobool
This commit is contained in:
2 files changed
+12
-5
No files matched your search
@@ -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