Skip to content

Commit

Permalink
chore: addition to dc562a4
Browse files Browse the repository at this point in the history
  • Loading branch information
SachsenspieltCoding committed Jan 14, 2024
1 parent dc562a4 commit 004042a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/interface/course.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
*/
export interface Course {
subject: string;
teacher: number;
teacher: string | null;
}
2 changes: 1 addition & 1 deletion src/parser/course.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export class CourseParser implements IndiwareParser<Course> {
parse(xml: any): Course {
return {
subject: xml.KKz['#text'],
teacher: xml.KKz['@_KLe'],
teacher: xml.KKz['@_KLe'] || null,
};
}
}

0 comments on commit 004042a

Please sign in to comment.