Skip to content

Commit 5ba984e

Browse files
committed
fix evals stuff
Spring evals errors Housing point stuff
1 parent c1e6ae5 commit 5ba984e

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

conditional/blueprints/conditional.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ def conditional_review(user_dict=None):
106106

107107
if status == 'Passed':
108108
account = ldap_get_member(uid)
109-
hp = account.housingPoints
110-
ldap_set_housingpoints(account, hp + 2)
109+
hp = int(account.housingPoints)
110+
ldap_set_housingpoints(account, str(hp + 2))
111111

112112
elif cond_obj.i_evaluation:
113113
FreshmanEvalData.query.filter(FreshmanEvalData.id == cond_obj.i_evaluation).update(

conditional/blueprints/slideshow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ def slideshow_spring_review(user_dict=None):
138138
if ldap_is_intromember(account):
139139
ldap_set_not_intro_member(account)
140140

141-
hp = account.housingPoints
142-
ldap_set_housingpoints(account, hp + 2)
141+
hp = int(account.housingPoints)
142+
ldap_set_housingpoints(account, str(hp + 2))
143143
elif status == "Failed":
144144
if ldap_is_intromember(account):
145145
ldap_set_failed(account)

conditional/util/ldap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,13 @@ def ldap_set_inactive(account):
136136

137137
def ldap_set_intro_member(account):
138138
_ldap_add_member_to_group(account, 'intromembers')
139-
ldap_get_intro_members().cache_clear()
139+
ldap_get_intro_members.cache_clear()
140140
ldap_get_member.cache_clear()
141141

142142

143143
def ldap_set_not_intro_member(account):
144144
_ldap_remove_member_from_group(account, 'intromembers')
145-
ldap_get_intro_members().cache_clear()
145+
ldap_get_intro_members.cache_clear()
146146
ldap_get_member.cache_clear()
147147

148148

0 commit comments

Comments
 (0)