Add weekend open skip, expiry force-close, and Chinese trade labels.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -65,3 +65,9 @@ class Ledger:
|
||||
if v is None or v == "":
|
||||
return default
|
||||
return str(v)
|
||||
|
||||
def get_setting_bool(self, key: str, default: bool) -> bool:
|
||||
v = self.db.get_setting(key)
|
||||
if v is None or v == "":
|
||||
return default
|
||||
return str(v).strip().lower() in ("1", "true", "yes", "on")
|
||||
|
||||
Reference in New Issue
Block a user