Open copperwater opened 8 years ago
Realized that credits are not actually passed by the schedule API. Needs the backend to give it the information, and I can't figure out how to do that right now.
This is now less important since RPI has removed the credit cap. Still important though for other institutions that might want to use it, though.
The amount of credits in each course should already be readily accessible to the schedule, so it should just be a matter of summing them up. I think that it should be computed per-schedule so that it won't be a problem if we add different levels of course priorities (in which schedules won't necessarily all contain the same courses; see #97).
The credit limit should ideally be defined in config because it's a fixed value that only varies between colleges, but I don't think we have a method of getting frontend constants from config yet. It would be fine at this point to hardcode it as 21.