async def put(id: int, work: WorkBaseIn): await Work.filter(id=id).update(**work.dict(exclude_unset=True)) return await WorkBaseOut.from_queryset_single(Work.get(id=id))
async def get(id: int): return await WorkBaseOut.from_queryset_single(Work.get(id=id))