Skip to content
Snippets Groups Projects
Commit a105431b authored by root's avatar root
Browse files

fixed komma fuck ups nach dem rausparsen der inhaltsstoffe

parent 0a3a6998
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,10 @@ def parseDay( dom, dayName ):
day = dom.find("div#"+dayName).first().find("tbody").find("tr")
for tr in range(day.length()):
tds = day[tr].find("td");
gericht = re.sub(r'\([\d+,]+\)', '', tds[0].text())
gericht = tds[0].text()
gericht = re.sub(r'\([\d+,]+\)', '', gericht)
gericht = re.sub(r' ,', ',', gericht)
gericht = re.sub(r',\S', ', ', gericht)
art = tds[1].text()
kategorie = tds[2].find("img").first().attr( "src" )
gerichte.append({'gericht': gericht,"art": art,"kategorie":kategorie})
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment