fix: Version display
All checks were successful
Build Docker / Build Image (push) Successful in 22s

This commit is contained in:
Nathan Woodburn 2024-02-17 12:55:14 +11:00
parent af4cd0c652
commit 703f1ed5c1
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -1047,6 +1047,8 @@ def settings():
branch = info['refs']
if branch != "main":
branch = f"({branch})"
else:
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")