Summer terms were backwards; fixed

This commit is contained in:
3eef8a28f26fb2bcc514e6f1938929a1f931762 2023-02-09 17:00:03 -05:00
parent 34be84a044
commit 0ac59efe18

View file

@ -183,10 +183,10 @@ void handle_course_summer(const Json::Value& course,
const auto& dateStart = timeslot["dateStart"].asString(); const auto& dateStart = timeslot["dateStart"].asString();
subterm = 0; subterm = 0;
if(dateStart.substr(0,2) != "05") { if(dateStart.substr(0,2) != "05") {
subterm = 1; subterm = 2;
subterm1 = true; subterm1 = true;
} else if(dateEnd.substr(0,2) != "08") { } else if(dateEnd.substr(0,2) != "08") {
subterm = 2; subterm = 1;
subterm2 = true; subterm2 = true;
} else { } else {
subterm0 = true; subterm0 = true;