jyn514 / GradeForge

Courses available from my.sc.edu
GNU General Public License v3.0
1 stars 0 forks source link

Add seats remaining #9

Open jyn514 opened 6 years ago

jyn514 commented 6 years ago

The parsing for this will not be terribly difficult, I can knock something out this weekend. This is conceptually hard in that we'll either have to parse on demand, when a client requests a page from our server, or keep our database continuously up-to-date, which will require hammering the site pretty much forever. I (and I think @JamesPC44) prefer dynamic, but I'm willing to hear suggestions.

Ideally, this will be done client-side so that we can use AJAX.

jyn514 commented 6 years ago

Update: I had this locally and forgot to commit it. See https://github.com/jyn514/GradeForge/commit/6ac283f6d9d87254123324f9a497a0bb3c6f6a09.

jyn514 commented 6 years ago

Note also that we do not currently store the seat capacity of a class, which is immutable. This is partially because it requires downloading a new webpage for each class and partially because it's not much use without knowing the seats remaining.

jyn514 commented 6 years ago

We agreed that for the time being we'll load the sections dynamically (client-side). Eventually, it would be nice to filter sections that don't have seats, but we can get to that later since it's quite technically difficult.