1
0

fix: Takes place
All checks were successful
Remote Deploy / deploy (push) Successful in 6s

This commit is contained in:
2026-02-08 19:38:22 +01:00
parent dc845edef0
commit 1d743c5553

View File

@@ -202,26 +202,38 @@ function extractTakesPlace(sheet) {
if (!cell.isMerged) { if (!cell.isMerged) {
return ""; return "";
} }
let str = ""; let str = cell.master?.value?.trim() || "";
try {
str = cell.master.value.trim();
let i = 5; let i = 5;
while (true) { while (true) {
const nextCell = sheet.getCell(`B${i}`); const nextCell = sheet.getCell(`B${i}`);
if (!nextCell.isMerged) {
break;
}
if (nextCell.isMerged) {
const cell = nextCell.master const cell = nextCell.master
str += `\n${cell.value.trim()}` str += `\n${cell.value.trim()}`
i++; i++;
continue;
} }
} catch {}
return str; const tryCells = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K"];
const threshold = 20;
for (const cellTest of tryCells) {
const cellTry = sheet.getCell(`${cellTest}${i}`)
const cellValue = cellTry?.value?.trim() || "";
if (cellValue.length >= threshold) {
str += `\n${cellValue}`;
i++;
continue;
}
}
break;
}
return str.trim();
} }
function extractReservedRooms(sheet) { function extractReservedRooms(sheet) {