Actually fix padagali
This commit is contained in:
parent
24dea4b537
commit
71f33bd9e3
@ -29,7 +29,8 @@ void LunchRest::PadagaliRestaurant::parse() {
|
|||||||
auto menu_index = dayToNum(nodeToText(days[0]->find("./h3/text()")[0]));
|
auto menu_index = dayToNum(nodeToText(days[0]->find("./h3/text()")[0]));
|
||||||
if(menu_index == -1)
|
if(menu_index == -1)
|
||||||
return;
|
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 day = days[i];
|
||||||
auto meals = day->find("./div");
|
auto meals = day->find("./div");
|
||||||
for(auto &meal : meals) {
|
for(auto &meal : meals) {
|
||||||
|
Loading…
Reference in New Issue
Block a user