From df27e10005eaf1b362cf53f5d6088e3c6e50696f Mon Sep 17 00:00:00 2001 From: Macbook Date: Thu, 12 Mar 2026 21:28:09 +0300 Subject: [PATCH] release 1.4 --- .DS_Store | Bin 6148 -> 6148 bytes .dockerignore | 4 +++- src/app/routers/api.py | 9 +++++++++ src/utils/__init__.py | 1 + 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.DS_Store b/.DS_Store index b5024b49eefa7ccebd4e32aef4ff186faae42f96..e3862f2e0f91865367dfeff4a2666209a80fa950 100644 GIT binary patch delta 69 zcmZoMXffEZm4$J~Jrt}=4Ltyh9>52Bro&3TEcUwY8iaqRRT#LGjr+ Zxq10rll@uc8M`;+JRh6aW@3WgTOlMPvA7`rF?vC1>{Y|dky!L*s3<1aq| DY55Ls diff --git a/.dockerignore b/.dockerignore index 8631955..d82082c 100644 --- a/.dockerignore +++ b/.dockerignore @@ -3,4 +3,6 @@ apiKey.csv Dockerfile .gitignore .DS_Store -.env \ No newline at end of file +.env +.venv/ +__pycache__/ \ No newline at end of file diff --git a/src/app/routers/api.py b/src/app/routers/api.py index fbba2bf..f5342ac 100644 --- a/src/app/routers/api.py +++ b/src/app/routers/api.py @@ -487,6 +487,15 @@ async def resend_post( logger.info("✅ Повторная отправка успешна") + singing = await Signing.getSigningByTrackingId(trackingId) + if singing.success and singing.data.deliveryType != deliveryType: + previousDeliveryType = singing.data.deliveryType + singing.data.deliveryType = deliveryType + await singing.data.save() + logger.info( + f"🔄 Обновлен тип доставки с {previousDeliveryType} на {deliveryType} для трек-номера {trackingId}" + ) + return {"status": "SUCCESS", "message": resendResult.get("message", "")} diff --git a/src/utils/__init__.py b/src/utils/__init__.py index 3f29eea..1b03377 100644 --- a/src/utils/__init__.py +++ b/src/utils/__init__.py @@ -6,6 +6,7 @@ from .attachment import * from .request_parser import RequestParser from .to_dict import * from .web import * +from .pdf_saver import * requestDict = RequestParser()