Skip to content

Commit

Permalink
fix init add course
Browse files Browse the repository at this point in the history
  • Loading branch information
as6325400 committed Jan 20, 2024
1 parent eb21495 commit 4f5df3d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/functions/course_add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,17 @@ function courseAdd(courseName: string, classRoom: string, weekDay: string, start
is_title: false,
is_course: true,
color: env.VITE_CARD_DEFAULT_COLOR,
ID: null,
ID: "此為自定義課程",
Credit: 0,
is_custom: true,
Teacher: null,
Teacher: "此為自定義課程",
Memo: null,
textColor: env.VITE_CARDTEXT_DEFAULT_COLOR,
textStyle: env.VITE_CARDTEXT_DEFAULT_STYLE,
uuid: Uuid,
length: 0,
department: "",
grade: ""
department: "此為自定義課程",
grade: "此為自定義課程"
})
let weekDayIndex = WeekDayToInt[weekDay]; // 2 is the offset of the first two columns
let startHour = courseToStartIndex[start];
Expand Down

0 comments on commit 4f5df3d

Please sign in to comment.