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
88WORKDIR /opt/conditional
99
1010RUN 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 && \
1212 pip install -r requirements.txt && \
1313 apt-get -yq clean all
1414
Original file line number Diff line number Diff line change 22from ._version import __version__
33
44import os
5- import subprocess
65from datetime import datetime
76
87from csh_ldap import CSHLDAP
2322
2423app .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
3127db = SQLAlchemy (app )
3228migrate = 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
12from os import environ as env
3+
24from conditional import __version__
35
46# Flask config
57DEBUG = True if env .get ("CONDITIONAL_DEBUG" , "false" ).lower () == "true" else False
68HOST_NAME = env .get ("CONDITIONAL_HOST_NAME" , "conditional.csh.rit.edu" )
9+ SERVER_NAME = env .get ('CONDITIONAL_SERVER_NAME' , 'conditional.csh.rit.edu' )
710APP_NAME = "conditional"
811IP = env .get ("CONDITIONAL_IP" , "0.0.0.0" )
912PORT = env .get ("CONDITIONAL_PORT" , 6969 )
3134 'post_logout_redirect_uris' : [env .get ("CONDITIONAL_OIDC_CLIENT_LOGOUT" , "http://0.0.0.0:6969/logout" )]
3235}
3336
37+ # Openshift secret
38+ SECRET_KEY = env .get ("CONDITIONAL_SECRET_KEY" , default = '' .join (secrets .token_hex (16 )))
39+
3440# General config
3541DUES_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>
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 >
Original file line number Diff line number Diff line change 11{
22 "name" : " conditional" ,
3- "version" : " 1.6.1 " ,
3+ "version" : " 1.7.0 " ,
44 "description" : " CSH Re-evaluation (MEGA_EVALS RE:RE:LOADED)" ,
55 "license" : " MIT" ,
66 "homepage" : " http://csh.rit.edu/" ,
2626 },
2727 "dependencies" : {
2828 "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 " ,
3030 "bootstrap-sass" : " ^3.3.6" ,
3131 "bootstrap-sweetalert" : " ^1.0.1" ,
3232 "csh-material-bootstrap" : " 1.0.0" ,
You can’t perform that action at this time.
0 commit comments