From c20d053a6e0af7a0874bafe4a63f188737d5128a Mon Sep 17 00:00:00 2001 From: adueck Date: Fri, 29 Dec 2023 13:02:34 +0400 Subject: [PATCH] oops --- functions/src/publish.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/src/publish.ts b/functions/src/publish.ts index f907e5d..92b090d 100644 --- a/functions/src/publish.ts +++ b/functions/src/publish.ts @@ -112,13 +112,13 @@ async function getRawEntries(): Promise { // // await rows[i].delete(); // } const entries: T.DictionaryEntry[] = []; - let sheetIndex = 0; + // let sheetIndex = 0; // get the rows in order of ts for easy detection of duplicate entries for (let i = 0; i < rows.length; i++) { // function sameEntry(a: any, b: any): boolean { // return a.p === b.p && a.f === b.f && a.e === b.e; // } - sheetIndex++; + // sheetIndex++; const row = rows[i]; const nextRow = rows[i + 1] || undefined; if (row.ts === nextRow?.ts) {