From 9d34d48a24d95774b64c933a74aebc9dd8220b0a Mon Sep 17 00:00:00 2001 From: hay-kot Date: Tue, 9 Mar 2021 19:42:45 -0900 Subject: [PATCH] typo --- mealie/services/scraper/cleaner.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mealie/services/scraper/cleaner.py b/mealie/services/scraper/cleaner.py index a35be6431..63f63bc48 100644 --- a/mealie/services/scraper/cleaner.py +++ b/mealie/services/scraper/cleaner.py @@ -48,7 +48,6 @@ class Cleaner: recipe_data["slug"] = slugify(recipe_data.get("name")) recipe_data["orgURL"] = url - print(recipe_data["recipeIngredient"]) return recipe_data @@ -84,7 +83,7 @@ class Cleaner: return [] # One long string split by (possibly multiple) new lines - if type(instructions) == str: + if isinstance(instructions, str): return [ {"text": Cleaner._instruction(line)} for line in instructions.splitlines() @@ -111,7 +110,7 @@ class Cleaner: sectionSteps = [] for step in instructions: if step["@type"] == "HowToSection": - [sectionSteps.append(item) for item in step["itemListELement"]] + [sectionSteps.append(item) for item in step["itemListElement"]] if len(sectionSteps) > 0: return [