feat: Fixed some mobile UI issues
All checks were successful
Build Docker / Build Image (push) Successful in 29s

This commit is contained in:
2024-02-17 12:27:20 +11:00
parent b85d316491
commit af4cd0c652
4 changed files with 11 additions and 8 deletions

View File

@@ -1045,12 +1045,12 @@ def settings():
info = gitinfo.get_git_info()
branch = info['refs']
if branch == "main":
branch = ""
if branch != "main":
branch = f"({branch})"
last_commit = info['author_date']
# import to time from format "2024-02-13 11:24:03"
last_commit = datetime.datetime.strptime(last_commit, "%Y-%m-%d %H:%M:%S")
version = f'{last_commit.strftime("%y-%m-%d")} ({branch})'
version = f'{last_commit.strftime("%y-%m-%d")} {branch}'
return render_template("settings.html", account=account,sync=account_module.getNodeSync(),
error=error,success=success,version=version)