File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 2
2
from ._version import __version__
3
3
4
4
import os
5
- import subprocess
6
5
from datetime import datetime
7
6
8
7
from csh_ldap import CSHLDAP
23
22
24
23
app .config ["SQLALCHEMY_TRACK_MODIFICATIONS" ] = False
25
24
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__
30
26
31
27
db = SQLAlchemy (app )
32
28
migrate = Migrate (app , db )
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ <h3>Evaluations underway:</h3>
36
36
{% endif %}
37
37
38
38
< 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 >
40
40
</ footer >
41
41
< script src ="/static/js/app.js "> </ script >
42
42
</ body >
You can’t perform that action at this time.
0 commit comments