From ad5320ce2b796e57c10235e41289ba3ba1cf605f Mon Sep 17 00:00:00 2001 From: Niko Strijbol Date: Mon, 12 Feb 2024 21:06:48 +0100 Subject: [PATCH] Fix sandwiches --- server/scraper/resto/sandwiches.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/scraper/resto/sandwiches.py b/server/scraper/resto/sandwiches.py index fb704408..78410fc6 100755 --- a/server/scraper/resto/sandwiches.py +++ b/server/scraper/resto/sandwiches.py @@ -87,8 +87,8 @@ def static_sandwiches(output2, soup): columns = row.find_all("td") sandwiches.append({ "name": columns[0].find(string=True), - "ingredients": parse_ingredients(columns[1].string or ""), - "price_medium": parse_money(columns[2].string), + "ingredients": parse_ingredients(columns[1].text.strip() or ""), + "price_medium": parse_money(columns[2].text.strip()), "price_small": "" # workaround })