From 2d1f992490a138eabce8410d15895c1cc85a67e6 Mon Sep 17 00:00:00 2001 From: Anton Kamalov Date: Thu, 12 Dec 2024 15:53:13 +0300 Subject: [PATCH] result tuple in waybill outside of loop --- App/Waybill/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/App/Waybill/model.py b/App/Waybill/model.py index 4335e07..8697dce 100644 --- a/App/Waybill/model.py +++ b/App/Waybill/model.py @@ -121,7 +121,7 @@ def transaction_order_model(user_id: int, current_date: date) -> InfoRespronse: ), ) cursor.execute(_sql) - result = tuple([order_id]) + result = tuple([order_id]) if result is None: return InfoRespronse((), error_message="Заказ не был создан", status=False) clear()