Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions conditional/blueprints/conditional.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ def conditional_review(user_dict=None):

if status == 'Passed':
account = ldap_get_member(uid)
hp = account.housingPoints
ldap_set_housingpoints(account, hp + 2)
hp = int(account.housingPoints)
ldap_set_housingpoints(account, str(hp + 2))

elif cond_obj.i_evaluation:
FreshmanEvalData.query.filter(FreshmanEvalData.id == cond_obj.i_evaluation).update(
Expand Down
4 changes: 2 additions & 2 deletions conditional/blueprints/slideshow.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ def slideshow_spring_review(user_dict=None):
if ldap_is_intromember(account):
ldap_set_not_intro_member(account)

hp = account.housingPoints
ldap_set_housingpoints(account, hp + 2)
hp = int(account.housingPoints)
ldap_set_housingpoints(account, str(hp + 2))
elif status == "Failed":
if ldap_is_intromember(account):
ldap_set_failed(account)
Expand Down
4 changes: 2 additions & 2 deletions conditional/util/ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,13 @@ def ldap_set_inactive(account):

def ldap_set_intro_member(account):
_ldap_add_member_to_group(account, 'intromembers')
ldap_get_intro_members().cache_clear()
ldap_get_intro_members.cache_clear()
ldap_get_member.cache_clear()


def ldap_set_not_intro_member(account):
_ldap_remove_member_from_group(account, 'intromembers')
ldap_get_intro_members().cache_clear()
ldap_get_intro_members.cache_clear()
ldap_get_member.cache_clear()


Expand Down
Loading