Skip to content

Commit

Permalink
feat(StudentPunishment): add title
Browse files Browse the repository at this point in the history
  • Loading branch information
Vexcited committed Feb 19, 2024
1 parent e0011de commit 2de4bf3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/parser/attendance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export class StudentDelay {

export class StudentPunishment {
public id: string;
public title: string;
public reasons: string[];

public isDuringLesson: boolean;
Expand All @@ -50,6 +51,7 @@ export class StudentPunishment {

constructor (client: Pronote, item: PronoteApiAttendancePunishment) {
this.id = item.N;
this.title = item.nature.V.L;
this.reasons = item.listeMotifs.V.map((motif) => motif.L);

this.exclusion = item.estUneExclusion;
Expand Down

0 comments on commit 2de4bf3

Please sign in to comment.