Skip to content

Commit b554a2e

Browse files
committed
fix: exclude legacy terms (_19_, 25) from subscription semester picker
1 parent 55ccc6c commit b554a2e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

frontend/js/db.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,10 @@ function _getAllCourses(term) {
284284
function _getAllCoursesTerms() {
285285
return _queryAll(
286286
"SELECT DISTINCT term FROM all_courses ORDER BY term DESC"
287-
).map((r) => r.term);
287+
).map((r) => r.term).filter(function (t) {
288+
// Exclude legacy semesters that predate the recording system.
289+
return t.indexOf("_19_") === -1 && t !== "25";
290+
});
288291
}
289292

290293
function _buildCatalogWhere(filters) {

0 commit comments

Comments
 (0)