Skip to content

Commit 5c5ce52

Browse files
committed
Removing git parse and using Version
1 parent 7ae94c9 commit 5c5ce52

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

conditional/__init__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from ._version import __version__
33

44
import os
5-
import subprocess
65
from datetime import datetime
76

87
from csh_ldap import CSHLDAP
@@ -23,10 +22,7 @@
2322

2423
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
2524

26-
app.config["GIT_REVISION"] = subprocess.check_output(['git',
27-
'rev-parse',
28-
'--short',
29-
'HEAD']).decode('utf-8').rstrip()
25+
app.config["VERSION"] = __version__
3026

3127
db = SQLAlchemy(app)
3228
migrate = Migrate(app, db)

conditional/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ <h3>Evaluations underway:</h3>
3636
{% endif %}
3737

3838
<footer>
39-
<a class="footer-version" href="https://github.com/ComputerScienceHouse/conditional/tree/{{config["GIT_REVISION"]}}">Conditional ({{config["GIT_REVISION"]}})</a>
39+
<a class="footer-version" href="https://github.com/ComputerScienceHouse/conditional/tree/v{{config["VERSION"]}}">Conditional (v{{config["VERSION"]}})</a>
4040
</footer>
4141
<script src="/static/js/app.js"></script>
4242
</body>

0 commit comments

Comments
 (0)