Finish fixing Suzzie's
This commit is contained in:
parent
89be08e9a6
commit
a2b0d13f55
@ -18,7 +18,7 @@ void LunchRest::SuzziesRestaurant::parse() {
|
|||||||
auto &root = hparse.getRoot();
|
auto &root = hparse.getRoot();
|
||||||
auto days = root.find("//div[@class='day']");
|
auto days = root.find("//div[@class='day']");
|
||||||
for(auto &day : days) {
|
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;
|
int cur_day = 0;
|
||||||
switch(daynum[0]) {
|
switch(daynum[0]) {
|
||||||
case '2':
|
case '2':
|
||||||
|
Loading…
Reference in New Issue
Block a user