Skip to content

Check if user is spring intro member so it returns the right number of directorships#532

Open
charlottegeo wants to merge 2 commits intoComputerScienceHouse:developfrom
charlottegeo:fix-spring-intro-directorships
Open

Check if user is spring intro member so it returns the right number of directorships#532
charlottegeo wants to merge 2 commits intoComputerScienceHouse:developfrom
charlottegeo:fix-spring-intro-directorships

Conversation

@charlottegeo
Copy link

What

Updates the req_cm function in member.py to check if a user was a spring intro member, and returns 15 (directorships) if they were a spring intro member.

Why

Spring intro members only need 15 directorships to pass spring evals but currently in Conditional it requires 30 for all members because it didn't check if they were a spring intro member.

Test Plan

I added an existing active member to the freshman_eval_data in my local database + set the eval_date to this year's spring intro evals date to make sure that the required number of directorships is set to 15 for spring intro members who passed intro evals.

Env Vars

No

Documentation

I changed the comment at the start of req_cm to reflect that it now gets the number of required directorships based on if the member is on co_op or is a spring intro member who passed intro evals.

Checklist

  • Tested all changes locally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant