diff --git a/server/src/restaurants.ts b/server/src/restaurants.ts index 0ece2b6..7703a0e 100644 --- a/server/src/restaurants.ts +++ b/server/src/restaurants.ts @@ -282,8 +282,8 @@ export const getMenuTechTower = async (firstDayOfWeek: Date, mock: boolean = fal let currentDayIndex = 0; for (let i = 0; i < siblings.length; i++) { const text = $(siblings.get(i)).text().trim().replace('\t', '').replace('\n', ' '); - if (DAYS_IN_WEEK.includes(text)) { - if (text === DAYS_IN_WEEK[currentDayIndex]) { + if (DAYS_IN_WEEK.includes(text.toLocaleLowerCase())) { + if (text.toLocaleLowerCase() === DAYS_IN_WEEK[currentDayIndex]) { // Našli jsme dnešní den, odtud začínáme parsovat jídla parsing = true; continue