mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-12-24 05:23:04 +00:00
minor format
This commit is contained in:
parent
566da81a20
commit
0767e91d7d
2 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue