From 0767e91d7d351da13b6e216c7e16b46343163fc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Mon, 4 Sep 2023 20:02:43 +0000 Subject: [PATCH] minor format --- api/advent22_api/config.py | 2 +- api/advent22_api/routers/abspacken.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/advent22_api/config.py b/api/advent22_api/config.py index 43bc9ff..3025249 100644 --- a/api/advent22_api/config.py +++ b/api/advent22_api/config.py @@ -22,4 +22,4 @@ class Config(BaseModel): async def get_config() -> Config: txt = await dav_get_textfile_content(path=SETTINGS.config_filename) - return Config.parse_obj(tomli.loads(txt)) + return Config.model_validate(tomli.loads(txt)) diff --git a/api/advent22_api/routers/abspacken.py b/api/advent22_api/routers/abspacken.py index 84fbbdf..3451c27 100644 --- a/api/advent22_api/routers/abspacken.py +++ b/api/advent22_api/routers/abspacken.py @@ -30,7 +30,7 @@ async def uwe( @router.get("/torsten/{ding}") async def torsten(ding: str) -> str: - return "Der Alphakevin Torsten hat ein " f"langes {ding}." + return f"Der Alphakevin Torsten hat ein langes {ding}." @router.get(