MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / users_patch

Function users_patch

examples/blacksheep/server.py:40–42  ·  view source on GitHub ↗
(id: UUID, user: UserPydanticIn)

Source from the content-addressed store, hash-verified

38
39@app.router.patch("/{id}")
40async def users_patch(id: UUID, user: UserPydanticIn) -> UserPydanticOut:
41 await Users.filter(id=id).update(**user.model_dump(exclude_unset=True))
42 return ok(await UserPydanticOut.from_tortoise_orm(await Users.get(id=id)))
43
44
45@app.router.put("/{id}")

Callers

nothing calls this directly

Calls 4

updateMethod · 0.80
from_tortoise_ormMethod · 0.80
filterMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…