quickhac / qhac-android

A port of QuickHAC to Android.
2 stars 1 forks source link

Don't hard-code number of semesters and number of cycles per semester. #1

Closed xsznix closed 10 years ago

xsznix commented 10 years ago

Some schools use nine week cycles, some schools use quarters, it's all weird and stuff. Instead, check Course.semesters.length and Course.semesters[0].cycles.length for the number of semesters and cycles per semester to parse. They are guaranteed to be the same for all courses in a single call of GradeParser.parseAverages.

This may also affect UI rendering code.

xsznix commented 10 years ago

This is currently an issue in the overview rendering code. The tables are rendered with fixed 3 cycle + exam + semester rows. This will break on 9 week cycles and elementary school grades.