Skip to content
This repository has been archived by the owner on Oct 27, 2018. It is now read-only.

Add status field based on seat numbers #1

Open
Bad-Science opened this issue Mar 11, 2018 · 0 comments
Open

Add status field based on seat numbers #1

Bad-Science opened this issue Mar 11, 2018 · 0 comments

Comments

@Bad-Science
Copy link
Member

As per YACS-RCOS/university#8, we want to add a status field to sections at RPI in order to be consistent with NYU. In the case of RPI, we track the fields seats and seats_taken, where seats is the total number of seats in a section, and seats_taken is the number of students that are currently registered for the section.

The status field for each section should be set based on the following conditional:

if seats_taken >= seats
  status = 'closed'
else
  status = 'open'
end
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant