File tree Expand file tree Collapse file tree 6 files changed +12
-10
lines changed Expand file tree Collapse file tree 6 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ ADD requirements.txt /opt/conditional
8
8
WORKDIR /opt/conditional
9
9
10
10
RUN apt-get -yq update && \
11
- apt-get -yq install libsasl2-dev python-dev libldap2-dev libssl-dev && \
11
+ apt-get -yq install libsasl2-dev libldap2-dev libssl-dev && \
12
12
pip install -r requirements.txt && \
13
13
apt-get -yq clean all
14
14
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 1
- __version__ = "1.6.1 "
1
+ __version__ = "1.7.0 "
Original file line number Diff line number Diff line change
1
+ import secrets
1
2
from os import environ as env
3
+
2
4
from conditional import __version__
3
5
4
6
# Flask config
5
7
DEBUG = True if env .get ("CONDITIONAL_DEBUG" , "false" ).lower () == "true" else False
6
8
HOST_NAME = env .get ("CONDITIONAL_HOST_NAME" , "conditional.csh.rit.edu" )
9
+ SERVER_NAME = env .get ('CONDITIONAL_SERVER_NAME' , 'conditional.csh.rit.edu' )
7
10
APP_NAME = "conditional"
8
11
IP = env .get ("CONDITIONAL_IP" , "0.0.0.0" )
9
12
PORT = env .get ("CONDITIONAL_PORT" , 6969 )
31
34
'post_logout_redirect_uris' : [env .get ("CONDITIONAL_OIDC_CLIENT_LOGOUT" , "http://0.0.0.0:6969/logout" )]
32
35
}
33
36
37
+ # Openshift secret
38
+ SECRET_KEY = env .get ("CONDITIONAL_SECRET_KEY" , default = '' .join (secrets .token_hex (16 )))
39
+
34
40
# General config
35
41
DUES_PER_SEMESTER = env .get ("CONDITIONAL_DUES_PER_SEMESTER" , 80 )
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 >
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " conditional" ,
3
- "version" : " 1.6.1 " ,
3
+ "version" : " 1.7.0 " ,
4
4
"description" : " CSH Re-evaluation (MEGA_EVALS RE:RE:LOADED)" ,
5
5
"license" : " MIT" ,
6
6
"homepage" : " http://csh.rit.edu/" ,
26
26
},
27
27
"dependencies" : {
28
28
"bootstrap" : " ^3.3.6" ,
29
- "bootstrap-material-datetimepicker" : " ^2.7.3 " ,
29
+ "bootstrap-material-datetimepicker" : " https://github.com/T00rk/bootstrap-material-datetimepicker.git#gh-pages " ,
30
30
"bootstrap-sass" : " ^3.3.6" ,
31
31
"bootstrap-sweetalert" : " ^1.0.1" ,
32
32
"csh-material-bootstrap" : " 1.0.0" ,
You can’t perform that action at this time.
0 commit comments