From 4fd573ea76dac4b6fd9a35d2b7382fef92792b56 Mon Sep 17 00:00:00 2001 From: Niko Strijbol Date: Sun, 29 Sep 2024 22:33:24 +0200 Subject: [PATCH] Really fix scraper this time --- server/scraper/resto/allergens.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/scraper/resto/allergens.py b/server/scraper/resto/allergens.py index 94d42482..abcdc5ba 100755 --- a/server/scraper/resto/allergens.py +++ b/server/scraper/resto/allergens.py @@ -86,6 +86,10 @@ def make_sections( if section_header == "meer info": continue + # Strip information about the portion size. + section_header = section_header.removesuffix("(nutrionele info per portie, afgerond op een gram)") + section_header = section_header.strip() + assert section_header not in sections next_header_idx = (