From d1e0901f7348fa03b84639eef649fc5ff3cc7650 Mon Sep 17 00:00:00 2001 From: James Addison Date: Mon, 11 Dec 2023 11:31:01 +0000 Subject: [PATCH] Logical fixup: drive earliest-crawl discovery from latest URL instead of interim recipe URL; this matches the description of the intended behaviour in the comment --- reciperadar/workers/recipes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reciperadar/workers/recipes.py b/reciperadar/workers/recipes.py index f2d79de..a3c9c4c 100644 --- a/reciperadar/workers/recipes.py +++ b/reciperadar/workers/recipes.py @@ -138,7 +138,7 @@ def crawl_recipe(url): return # Find the first-known crawl for the latest URL, and consider it the origin - earliest_crawl = recipe_url.find_earliest_crawl() + earliest_crawl = latest_crawl.find_earliest_crawl() if not earliest_crawl: print(f"Failed to find earliest crawl for url={url}") return