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(