feat: Add hsd version to settings and bump footer year
All checks were successful
Build Docker / Build Image (push) Successful in 48s

This commit is contained in:
2025-01-30 12:42:46 +11:00
parent 42e8f642b4
commit 86c93da5a2
21 changed files with 27 additions and 22 deletions

View File

@@ -36,11 +36,14 @@ def hsdConnected():
return False
return True
def hsdVersion():
def hsdVersion(format=True):
info = hsd.getInfo()
if 'error' in info:
return -1
return float('.'.join(info['version'].split(".")[:2]))
if format:
return float('.'.join(info['version'].split(".")[:2]))
else:
return info['version']
def check_account(cookie: str):
if cookie is None: