mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-05 13:35:23 +02:00
backup bug 2nd try
This commit is contained in:
parent
12c78ee2c4
commit
b8f7b58da3
1 changed files with 1 additions and 1 deletions
|
@ -51,9 +51,9 @@ def import_from_archive(file_name: str) -> list:
|
|||
for recipe in recipe_dir.glob("*.json"):
|
||||
with open(recipe, "r") as f:
|
||||
recipe_dict = json.loads(f.read())
|
||||
recipe_dict = import_migration(recipe_dict)
|
||||
|
||||
try:
|
||||
recipe_dict = import_migration(recipe_dict)
|
||||
recipeDoc = RecipeDocument(**recipe_dict)
|
||||
recipeDoc.save()
|
||||
successful_imports.append(recipe.stem)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue