From d7bfdb69a68aa06741e30cf5c3f75969335f06c2 Mon Sep 17 00:00:00 2001 From: Macbook Date: Tue, 16 Dec 2025 09:41:01 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=BA=D0=B0=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B8=D1=85=D0=BE=D0=B4=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/routers/toolbox.py | 2 +- db/handlers/actions.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/routers/toolbox.py b/api/routers/toolbox.py index ada403c..e421a45 100644 --- a/api/routers/toolbox.py +++ b/api/routers/toolbox.py @@ -70,7 +70,7 @@ async def fill_toolbox(reqDict=Depends(requestDict)): item.get("placement"), reason, ) - if success: + if "errorMessage" not in success.keys(): successCount += 1 if successCount == len(items): response["status"] = "ok" diff --git a/db/handlers/actions.py b/db/handlers/actions.py index 51c8349..c898e92 100644 --- a/db/handlers/actions.py +++ b/db/handlers/actions.py @@ -20,7 +20,7 @@ class StocksActions: price: float, placement: str, reason: str, - ) -> bool: + ) -> dict: logger.info(f"Приход инструмента {toolkit_id} на складе {toolbox_id} ...") newStocks = await StockHandler.add( toolkit_id=toolkit_id,