Skip to content

Commit

Permalink
Logical fixup: drive earliest-crawl discovery from latest URL instead…
Browse files Browse the repository at this point in the history
… of interim recipe URL; this matches the description of the intended behaviour in the comment
  • Loading branch information
jayaddison committed Dec 11, 2023
1 parent bc2370d commit d1e0901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reciperadar/workers/recipes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d1e0901

Please sign in to comment.