(id: UUID, user: UserPydanticIn)
| 38 | |
| 39 | @app.router.patch("/{id}") |
| 40 | async 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}") |
nothing calls this directly
no test coverage detected
searching dependent graphs…