[+] Create gradeLevels field in CourseInfo
This commit is contained in:
@@ -10,6 +10,7 @@ export default class CourseInfo
|
|||||||
|
|
||||||
uniqueName: string
|
uniqueName: string
|
||||||
courseCount: number
|
courseCount: number
|
||||||
|
gradeLevels: number[]
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct with a json object
|
* Construct with a json object
|
||||||
@@ -27,6 +28,7 @@ export default class CourseInfo
|
|||||||
|
|
||||||
this.uniqueName = this.name.replace(/( A| CP| H)$/g, '')
|
this.uniqueName = this.name.replace(/( A| CP| H)$/g, '')
|
||||||
this.courseCount = this.courseIds.split('|').length;
|
this.courseCount = this.courseIds.split('|').length;
|
||||||
|
this.gradeLevels = [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user