File tree Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1- FROM python:3.8-buster
1+ FROM docker.io/ python:3.8-buster
22MAINTAINER Devin Matte <
[email protected] >
33
44RUN mkdir /opt/conditional
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ def display_dashboard(user_dict=None):
4444 if ldap_is_intromember (user_dict ['account' ]):
4545 data ['freshman' ] = get_freshman_data (user_dict ['account' ].uid )
4646 else :
47- data ['freshman' ] = False
47+ data ['freshman' ] = None
4848
4949 spring = {}
5050 c_meetings = get_cm (user_dict ['account' ])
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ <h5 class="email">{{username}}@csh.rit.edu</h5>
2929 < div class ="row " data-module ="masonry ">
3030 < div class ="col-lg-6 col-md-6 col-sm-12 col-xs-12 ">
3131
32- {% if freshman != False %}
32+ {% if freshman %}
3333 < div class ="panel panel-default ">
3434 < div class ="panel-heading ">
3535 < h3 class ="panel-title "> Freshman Evaluations
Original file line number Diff line number Diff line change @@ -75,6 +75,8 @@ def get_freshman_data(user_name):
7575 freshman = {}
7676 freshman_data = FreshmanEvalData .query .filter (FreshmanEvalData .uid == user_name ).first ()
7777
78+ if freshman_data is None :
79+ return None
7880 freshman ['status' ] = freshman_data .freshman_eval_result
7981 # number of committee meetings attended
8082 c_meetings = [m .meeting_id for m in
You can’t perform that action at this time.
0 commit comments