backup bug fix

This commit is contained in:
Hayden 2021-01-09 11:40:06 -09:00
parent c378614f56
commit 12c78ee2c4
4 changed files with 18 additions and 14160 deletions

View File

@ -3,7 +3,6 @@ FROM python:3
RUN apt-get update -y && \
apt-get install -y python-pip python-dev
# We copy just the requirements.txt first to leverage Docker cache
COPY ./requirements.txt /app/requirements.txt
@ -17,5 +16,4 @@ COPY ./mealie /app
ENTRYPOINT [ "python" ]
# TODO Reconfigure Command to start a Gunicorn Server that managed the Uvicorn Server. Also Learn how to do that :-/
CMD [ "app.py" ]

14163
frontend/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -53,11 +53,12 @@ def import_from_archive(file_name: str) -> list:
recipe_dict = json.loads(f.read())
recipe_dict = import_migration(recipe_dict)
recipeDoc = RecipeDocument(**recipe_dict)
recipeDoc.save()
successful_imports.append(recipe.stem)
# print("Failed Import:", recipe.stem)
try:
recipeDoc = RecipeDocument(**recipe_dict)
recipeDoc.save()
successful_imports.append(recipe.stem)
except:
logger.error("Failed Import:", recipe.stem)
image_dir = TEMP_DIR.joinpath("images")
for image in image_dir.iterdir():

View File

@ -37,7 +37,7 @@ jstyleson==0.0.2
lazy-object-proxy==1.4.3
livereload==2.6.3
lunr==0.5.8
lxml==4.5.2
lxml>=4.6.2
Markdown==3.3.3
MarkupSafe==1.1.1
mccabe==0.6.1