From fd21777990702bcc520fb33f1f39217094e894f3 Mon Sep 17 00:00:00 2001 From: hay-kot Date: Thu, 1 Apr 2021 19:40:10 -0800 Subject: [PATCH] env setup fixes --- Dockerfile | 2 +- mealie/core/config.py | 2 +- tests/unit_tests/test_cleaner.py | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4b6df2a0c121..be6483e10619 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ RUN npm run build FROM python:3.9-alpine RUN apk add --no-cache libxml2-dev libxslt-dev libxml2 caddy libffi-dev -ENV ENV prod +ENV ENV True EXPOSE 80 WORKDIR /app/ diff --git a/mealie/core/config.py b/mealie/core/config.py index 0f5e21c2f30c..260768a1b9d2 100644 --- a/mealie/core/config.py +++ b/mealie/core/config.py @@ -111,7 +111,7 @@ class AppSettings(BaseSettings): SQLITE_FILE: Optional[Union[str, Path]] @validator("SQLITE_FILE", pre=True) - def identify_sqlite_file(cls, v: str) -> Optional[str]: + def identify_sqlite_file(_cls, v: str) -> Optional[str]: return app_dirs.SQLITE_DIR.joinpath(f"mealie_{DB_VERSION}.sqlite") DEFAULT_GROUP: str = "Home" diff --git a/tests/unit_tests/test_cleaner.py b/tests/unit_tests/test_cleaner.py index 8d574ddf56db..b1630a1324a9 100644 --- a/tests/unit_tests/test_cleaner.py +++ b/tests/unit_tests/test_cleaner.py @@ -1,6 +1,5 @@ import json import re -from datetime import timedelta import pytest from mealie.services.scraper.cleaner import Cleaner