Commit 90a9aa12 by Lin Wang

fix: change the google sheet tab name

parent b77d563e
......@@ -48,8 +48,8 @@ async function uploadAllToSheets() {
const existing = spreadsheet.sheets?.map((s: any) => s.properties?.title || '') || [];
for (const { subdir, file, path } of files) {
// Prefix sheet name with directory to distinguish diff vs nav
const sheetName = `${subdir}-${file.replace(/\.json$/, '')}`;
// Use file name (without extension) as sheetName
const sheetName = file.replace(/\.json$/, '');
if (!existing.includes(sheetName)) {
// Create new sheet
await sheets.spreadsheets.batchUpdate({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment