aboutsummaryrefslogtreecommitdiffstats
path: root/client/views.py
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2022-01-05 11:21:39 +0100
committerAndrea Lepori <alepori@student.ethz.ch>2022-01-05 11:21:53 +0100
commit36ae891283213008924630aecbcaba682f65cf6c (patch)
treea959895965188fda91603c6e32fb4994bdf7ad82 /client/views.py
parentlogout user if token expired + set password page (diff)
downloadscout-subs-36ae891283213008924630aecbcaba682f65cf6c.tar.gz
scout-subs-36ae891283213008924630aecbcaba682f65cf6c.zip
edit password working
Diffstat (limited to '')
-rw-r--r--client/views.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/views.py b/client/views.py
index 41bb3dd..44820be 100644
--- a/client/views.py
+++ b/client/views.py
@@ -304,6 +304,10 @@ def about(request):
version = version[version.find("=")+1:]
version = version.replace("\n", " ").replace("=", " ")
+ # get branch
+ branch = check_output(["git", "rev-parse", "--abbrev-ref", "HEAD"]).decode()
+ version += " (" + branch[:-1] + ")"
+
if version.startswith("0"):
version = "Beta " + version