feat: Added log when no scrapped recipe would be added to Mealie

This commit is contained in:
2025-12-20 13:09:29 +01:00
parent b3075865bb
commit e0024bcae3

View File

@@ -292,6 +292,9 @@ def main():
logging.info("All fetched recipes already exist in Mealie!")
exit(0)
new_recipes = hellofresh_client.recipes - mealie_client.tagged_recipes
if not new_recipes:
logging.info("All scrapped recipes already in Mealie, exiting.")
exit(0)
for new_recipe in new_recipes:
recipe_slug = mealie_client.add_mealie_recipe(new_recipe)
mealie_client.update_mealie_recipe(recipe_slug)