diff --git a/scraper/resto.py b/scraper/resto.py index e677289a..2e30d5d6 100755 --- a/scraper/resto.py +++ b/scraper/resto.py @@ -64,7 +64,7 @@ def __init__(self, date): self.vegetables = [] def parse(self, menu_div, lang): - titles = [x.content.lower() for x in menu_div.xpathEval('./h3') if len(x.content) > 0] + titles = [x.content.lower() for x in menu_div.xpathEval('./h3') if x.content] lists = menu_div.xpathEval('./ul[*]') if len(titles) == 1 and titles[0] == DICTIONARY[lang]['closed']: