update,
This commit is contained in:
15
catmk2/task1/utils/updateNotificationDate.js
Normal file
15
catmk2/task1/utils/updateNotificationDate.js
Normal file
@@ -0,0 +1,15 @@
|
||||
function updateNotificationDate(row) {
|
||||
output = {state:"init", debug:{}, error:{}}
|
||||
try {
|
||||
var student_progress_sheet = SpreadsheetApp.openById(SHEET_ID).getSheetByName(
|
||||
SHEET_STUDENT_PROGRESS
|
||||
);
|
||||
var notification_date_cell = getCell(student_progress_sheet, row, COL_STUDENT_PROGRESS_NOTIFICATION_DATE)
|
||||
writeCell(notification_date_cell, getChineseDayString().replace(/ /g,''))
|
||||
|
||||
} catch (error) {
|
||||
output = {...output, error}
|
||||
console.log('updateNotificationDate error')
|
||||
console.log(output)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user