This commit is contained in:
louiscklaw
2025-01-31 19:29:24 +08:00
parent 843c590c8b
commit abff74fd77
81 changed files with 7754 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
function appendResult(row, comment_to_write) {
var output = { state: "init", debug: { comment_to_write }, error: "" };
try {
var sheet = SpreadsheetApp.openById(SHEET_ID).getSheetByName(
SHEET_STUDENT_PROGRESS
);
var result_cell = getCell(sheet, row, COL_STUDENT_PROGRESS_RESULT);
var result_value = readCell(result_cell);
if (result_value.trim() == "") {
writeCell(result_cell, comment_to_write);
} else {
writeCell(result_cell, [result_value, comment_to_write].join("\n"));
}
} catch (error) {
output = { ...output, error };
console.log(output);
}
}