mirror of
https://github.com/basicswap/basicswap.git
synced 2026-06-11 05:21:40 +02:00
prepare: Make setup config persistent.
This commit is contained in:
@@ -19,7 +19,11 @@ REQUIRED_SETTINGS = {
|
||||
}
|
||||
|
||||
|
||||
def make_boolean(s):
|
||||
def make_boolean(s) -> bool:
|
||||
if isinstance(s, bool):
|
||||
return s
|
||||
if isinstance(s, int):
|
||||
return False if s == 0 else True
|
||||
return s.lower() in ["1", "true"]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user