From 784473daafa6f9d34a5cff6cac29610b702008ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jochen=20Wersd=C3=B6rfer?= Date: Thu, 5 Oct 2023 15:49:17 +0200 Subject: [PATCH] #24 fix mypy issues --- kptncook/config.py | 4 ++-- kptncook/mealie.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kptncook/config.py b/kptncook/config.py index d7b46a0..4a04677 100644 --- a/kptncook/config.py +++ b/kptncook/config.py @@ -16,8 +16,8 @@ class Settings(BaseSettings): root: DirectoryPath = Field(Path.home() / ".kptncook", env="KPTNCOOK_HOME") kptncook_api_key: str kptncook_access_token: str | None = None - kptncook_api_url: AnyHttpUrl = "https://mobile.kptncook.com" - mealie_url: AnyHttpUrl = "http://localhost:9000/api" + kptncook_api_url: AnyHttpUrl = AnyHttpUrl("https://mobile.kptncook.com") + mealie_url: AnyHttpUrl = AnyHttpUrl("http://localhost:9000/api") mealie_username: str mealie_password: str diff --git a/kptncook/mealie.py b/kptncook/mealie.py index 9671f42..c943f27 100644 --- a/kptncook/mealie.py +++ b/kptncook/mealie.py @@ -416,7 +416,7 @@ def kptncook_to_mealie( "recipe_instructions": kptncook_to_mealie_steps(kcin.steps, api_key), "recipe_ingredient": kptncook_to_mealie_ingredients(kcin.ingredients), "image_url": kcin.get_image_url(api_key), - "tags": [RecipeTag(name="kptncook")], + "tags": [RecipeTag.model_validate({"name": "kptncook", "group_id": None})], "extras": {"kptncook_id": kcin.id.oid, "source": "kptncook"}, } print("kwargs: ", kwargs)