async def put(id: int, level: PydanticLevelIn): await Level.filter(id=id).update(**level.dict(exclude_unset=True)) return await PydanticLevel.from_queryset_single(Level.get(id=id))
async def get(id: int): return await PydanticLevel.from_queryset_single(Level.get(id=id))