mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-10-27 08:14:30 -04:00
fix: scrape images as list (#4293)
This commit is contained in:
@@ -54,6 +54,8 @@ async def create_from_html(
|
||||
recipe_data_service = RecipeDataService(new_recipe.id)
|
||||
|
||||
try:
|
||||
if new_recipe.image and isinstance(new_recipe.image, list):
|
||||
new_recipe.image = new_recipe.image[0]
|
||||
await recipe_data_service.scrape_image(new_recipe.image) # type: ignore
|
||||
|
||||
if new_recipe.name is None:
|
||||
|
||||
Reference in New Issue
Block a user