Actually fix padagali

This commit is contained in:
zvon 2020-09-16 17:09:17 +02:00
parent 24dea4b537
commit 71f33bd9e3

View File

@ -29,7 +29,8 @@ void LunchRest::PadagaliRestaurant::parse() {
auto menu_index = dayToNum(nodeToText(days[0]->find("./h3/text()")[0]));
if(menu_index == -1)
return;
for(int i = 0; i < 5-menu_index; i++) {
auto max_div = 5 - menu_index;
for(int i = 0; i < max_div; i++) {
auto day = days[i];
auto meals = day->find("./div");
for(auto &meal : meals) {