From a2b0d13f552316c074fcfff4beaabe721acc9c40 Mon Sep 17 00:00:00 2001 From: zvon Date: Thu, 11 Feb 2021 19:21:55 +0100 Subject: [PATCH] Finish fixing Suzzie's --- restaurants/suzzies.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restaurants/suzzies.cpp b/restaurants/suzzies.cpp index ae53fb7..04f85b7 100644 --- a/restaurants/suzzies.cpp +++ b/restaurants/suzzies.cpp @@ -18,7 +18,7 @@ void LunchRest::SuzziesRestaurant::parse() { auto &root = hparse.getRoot(); auto days = root.find("//div[@class='day']"); for(auto &day : days) { - auto *daynum = xmlGetProp(days[0]->cobj(), (xmlChar*)"data-day"); + auto *daynum = xmlGetProp(day->cobj(), (xmlChar*)"data-day"); int cur_day = 0; switch(daynum[0]) { case '2':