File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ const analyzeRow = (columns: string[]) => {
121
121
schedules : [ ] ,
122
122
instructor : columns [ 8 ] ,
123
123
error : false ,
124
+ lastUpdate : new Date ( columns [ 16 ] + '+09:00' ) , // JST保証
124
125
}
125
126
126
127
const moduleString = columns [ 5 ]
@@ -181,7 +182,7 @@ export default (data: Buffer): Course[] => {
181
182
console . log ( '● Parsing' )
182
183
for ( let r = 5 ; ; r ++ ) {
183
184
const columns : string [ ] = [ ]
184
- for ( let c = 0 ; c < 16 ; c ++ )
185
+ for ( let c = 0 ; c <= 16 ; c ++ )
185
186
columns . push ( sheet [ utils . encode_cell ( { r, c } ) ] . v )
186
187
if ( columns [ 0 ] === '' ) break
187
188
courses . push ( analyzeRow ( columns ) )
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ export interface Course {
14
14
} [ ]
15
15
instructor : string
16
16
error : boolean
17
+ lastUpdate : Date
17
18
}
18
19
19
20
export enum Module {
You can’t perform that action at this time.
0 commit comments