File tree 4 files changed +5
-3
lines changed
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
2
2
MAINTAINER Devin Matte <matted@csh.rit.edu>
3
3
4
4
RUN mkdir /opt/conditional
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ def display_dashboard(user_dict=None):
44
44
if ldap_is_intromember (user_dict ['account' ]):
45
45
data ['freshman' ] = get_freshman_data (user_dict ['account' ].uid )
46
46
else :
47
- data ['freshman' ] = False
47
+ data ['freshman' ] = None
48
48
49
49
spring = {}
50
50
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>
29
29
< div class ="row " data-module ="masonry ">
30
30
< div class ="col-lg-6 col-md-6 col-sm-12 col-xs-12 ">
31
31
32
- {% if freshman != False %}
32
+ {% if freshman %}
33
33
< div class ="panel panel-default ">
34
34
< div class ="panel-heading ">
35
35
< 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):
75
75
freshman = {}
76
76
freshman_data = FreshmanEvalData .query .filter (FreshmanEvalData .uid == user_name ).first ()
77
77
78
+ if freshman_data is None :
79
+ return None
78
80
freshman ['status' ] = freshman_data .freshman_eval_result
79
81
# number of committee meetings attended
80
82
c_meetings = [m .meeting_id for m in
You can’t perform that action at this time.
0 commit comments