fix(params): isdecimal instead of isnumeric
Python Lint CI / ruff (push) Successful in 3m42s
Python Lint CI / ruff-format-check (push) Successful in 3m51s
Python Lint CI / ty (push) Successful in 1m13s
Docker CI / docker-build (push) Successful in 5m28s
Python Test CI / coverage (push) Successful in 3m31s
Python Lint CI / ruff (push) Successful in 3m42s
Python Lint CI / ruff-format-check (push) Successful in 3m51s
Python Lint CI / ty (push) Successful in 1m13s
Docker CI / docker-build (push) Successful in 5m28s
Python Test CI / coverage (push) Successful in 3m31s
This commit is contained in:
+1
-1
@@ -40,7 +40,7 @@ def __get_env_str(var: str, default: str) -> str:
|
||||
|
||||
def __get_env_int(var: str, default: int) -> int:
|
||||
value = __get_env_str(var, str(default))
|
||||
if value.isnumeric():
|
||||
if value.isdecimal():
|
||||
return int(value)
|
||||
return default
|
||||
|
||||
|
||||
Reference in New Issue
Block a user