Журнал перемещений, упрощение и чистка
This commit is contained in:
@@ -54,7 +54,6 @@ async def delete_toolbox(reqDict=Depends(requestDict)):
|
||||
@router.post("/fill", summary="Заполнение ящика")
|
||||
async def fill_toolbox(reqDict=Depends(requestDict)):
|
||||
logger.info(f"Заполнение ящика")
|
||||
logger.info(reqDict.get("body"))
|
||||
response = {"status": "error"}
|
||||
toolboxId = reqDict.get("body").get("toolboxId")
|
||||
userId = reqDict.get("body").get("userId")
|
||||
@@ -79,5 +78,4 @@ async def fill_toolbox(reqDict=Depends(requestDict)):
|
||||
response["message"] = (
|
||||
f"Оприходовано {successCount} записей из {len(items)}. Проверьте остатки и повторите попытку"
|
||||
)
|
||||
logger.info(response)
|
||||
return response
|
||||
|
||||
Reference in New Issue
Block a user