Skip to content

Commit c8c717f

Browse files
committed
missed a spot
1 parent 9cbbe3f commit c8c717f

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

dist/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async function run(): Promise<void> {
4646

4747
for (; studentIndex < 100; studentIndex++) {
4848
if (students.rawData.length <= studentIndex || students.rawData[studentIndex].length < 1 || students.rawData[studentIndex][0] == '') {
49-
await gsheet.appendData([[student]], {minCol: 1, minRow: studentIndex+1, maxCol: 1, maxRow: studentIndex+1})
49+
await gsheet.updateData([[student]], {minCol: 1, minRow: studentIndex+1, maxCol: 1, maxRow: studentIndex+1})
5050
break;
5151
}
5252
if (students.rawData[studentIndex][0] == student) {
@@ -56,7 +56,7 @@ async function run(): Promise<void> {
5656

5757
for (; weekIndex < 100; weekIndex++) {
5858
if (weeks.rawData.length < 1 || weeks.rawData[0].length <= weekIndex || weeks.rawData[0][weekIndex] == '') {
59-
await gsheet.appendData([[week]], {minCol: weekIndex+1, minRow: 1, maxCol: weekIndex+1, maxRow: 1})
59+
await gsheet.updateData([[week]], {minCol: weekIndex+1, minRow: 1, maxCol: weekIndex+1, maxRow: 1})
6060
break;
6161
}
6262
if (weeks.rawData[0][weekIndex] == week) {

0 commit comments

Comments
 (0)