diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2022-01-05 11:21:39 +0100 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2022-01-05 11:21:53 +0100 |
commit | 36ae891283213008924630aecbcaba682f65cf6c (patch) | |
tree | a959895965188fda91603c6e32fb4994bdf7ad82 /client/views.py | |
parent | logout user if token expired + set password page (diff) | |
download | scout-subs-36ae891283213008924630aecbcaba682f65cf6c.tar.gz scout-subs-36ae891283213008924630aecbcaba682f65cf6c.zip |
edit password working
Diffstat (limited to 'client/views.py')
-rw-r--r-- | client/views.py | 4 |
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 |