address PR comments

This commit is contained in:
Thomas White
2023-08-26 01:52:35 +08:00
parent 312aad55c0
commit d721e7d827
2 changed files with 47 additions and 48 deletions

View File

@@ -159,10 +159,10 @@ async def create( # noqa: ANN201
body: SpoolParameters,
):
if body.remaining_weight is not None and body.used_weight is not None:
return JSONResponse(
status_code=400,
content={"message": "Only specify either remaining_weight or used_weight."},
)
return JSONResponse(
status_code=400,
content={"message": "Only specify either remaining_weight or used_weight."},
)
try:
db_item = await spool.create(