mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
home page is semester-aware
This commit is contained in:
@@ -27,7 +27,7 @@ function groupByStartDate(courses: LocalCourseSettings[]): {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getTermName(startDate: string) {
|
function getTermName(startDate: string) {
|
||||||
const [year, month, ...rest] = startDate.split("-");
|
const [year, month, ..._rest] = startDate.split("-");
|
||||||
if (month < "04") return "Spring " + year;
|
if (month < "04") return "Spring " + year;
|
||||||
if (month < "07") return "Summer " + year;
|
if (month < "07") return "Summer " + year;
|
||||||
return "Fall " + year;
|
return "Fall " + year;
|
||||||
|
|||||||
Reference in New Issue
Block a user