This commit is contained in:
@@ -69,7 +69,7 @@ function parseThisShit(downloadedFilePath) {
|
|||||||
let d = true;
|
let d = true;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (currentSheet[key]["w"].startsWith("úklid")) {
|
if (currentSheet[key]["w"].startsWith("úklid") || currentSheet[key]["w"].trim().length == 0) {
|
||||||
d = false;
|
d = false;
|
||||||
}
|
}
|
||||||
} catch {}
|
} catch {}
|
||||||
@@ -107,7 +107,9 @@ function parseThisShit(downloadedFilePath) {
|
|||||||
const isPriprava = /priprava/i.test(str);
|
const isPriprava = /priprava/i.test(str);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
date: date ? date.toISOString().slice(0,10) : null, // ISO yyyy-mm-dd string for easy use
|
date: date
|
||||||
|
? `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, '0')}-${String(date.getDate()).padStart(2, '0')}`
|
||||||
|
: null,
|
||||||
priprava: isPriprava,
|
priprava: isPriprava,
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user