jdolak/plnd4u

Displaying courses by semester on /plan

Closed this issue · 1 comments

jdolak commented

Commit b6a0d53 now adds courses to has_enrollments when the add button is selected.

Semester data is stored in the form of first 2 letters of year level and first 2 letters of season:
e.i. freshman spring = FRSP.

db_show_student_enrollments() will output the list of courses enrolled in a selected semester
Example:
db_show_student_enrollments('jdolak', 'FRSP') -> [(2, 'CSE 20110', 'FRSP', 'CSE 20110', 0)]

  • Unlisted courses have the semester of UNLT
  • db_show_student_enrollments('jdolak', 0) shows all enrolled courses
  • Semesters with no classes return as an empty string

Next Steps

Displaying courses by semester on /plan presumably by calling db_show_student_enrollments() for every semester and passing that data to javascript

jdolak commented

f57adb2 now passes the arguments to json