Skip to content

Commit ba31c40

Browse files
committed
fix: カラムが増えてずれた部分を修正
1 parent 87b69db commit ba31c40

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "twinte-parser",
3-
"version": "2.2.0",
3+
"version": "2.3.0",
44
"description": "Twinte内部で使用するために開発されたKdBパーサ",
55
"private": false,
66
"main": "dist/index.js",

src/parser.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ const analyzeRow = (columns: string[]) => {
166166
schedules: [],
167167
instructor: columns[8],
168168
error: false,
169-
lastUpdate: new Date(columns[16] + '+09:00'), // JST保証
169+
lastUpdate: new Date(columns[18] + '+09:00'), // JST保証
170170
}
171171

172172
const moduleString = columns[5]
@@ -228,7 +228,7 @@ export default (data: Buffer): Course[] => {
228228
if (typeof sheet[utils.encode_cell({ r, c: 0 })] === 'undefined') break
229229

230230
const columns: string[] = []
231-
for (let c = 0; c <= 16; c++)
231+
for (let c = 0; c <= 18; c++)
232232
columns.push(sheet[utils.encode_cell({ r, c })].v)
233233

234234
// 科目番号が空の行はスキップ

0 commit comments

Comments
 (0)