Пример #1
0
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))
Пример #2
0
async def get(id: int):
    return await PydanticLevel.from_queryset_single(Level.get(id=id))