Skip to content

Commit

Permalink
Update utils.js
Browse files Browse the repository at this point in the history
  • Loading branch information
itaikla authored Jan 19, 2024
1 parent b3899fc commit e42ce11
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions utils/utils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
export function appendToExcel(url, row) {
const sheetName = 'Sheet1';

export function appendToExcel({ url, row }) {
var todayDate = new Date().toJSON().slice(0,10).replace(/-/g,'/');
const sheet = SpreadsheetApp.openByUrl(url).getSheetByName('Sheet1');
const sheet = SpreadsheetApp.openByUrl(url).getSheetByName(sheetName);
var data = [todayDate, row.seoScore, row.accessibilityScore, row.performanceScore, row.bestPracticesScore];
sheet.appendRow(data);
}
Expand Down

0 comments on commit e42ce11

Please sign in to comment.