Skip to content

Commit

Permalink
Add warning for no schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
psvenk committed Dec 12, 2024
1 parent 7fe9013 commit 4f05a99
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,11 @@ export class Class {
messages.push(
"+ Class has at least one section yet to be scheduled—check course catalog.",
);
} else if (this.sections.length === 0) {
suffixes.push("&");
messages.push(
"& Class schedule is unknown—check course catalog or department website.",
);
}
if (this.rawClass.isVariableUnits) {
if (this.rawClass.hours === 0) {
Expand Down

0 comments on commit 4f05a99

Please sign in to comment.