From 7c74289522871be470b1b6a5d3c0254daba80891 Mon Sep 17 00:00:00 2001 From: Anton Kamalov Date: Wed, 4 Dec 2024 18:09:39 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App/Waybill/model.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/App/Waybill/model.py b/App/Waybill/model.py index 48d4488..9a1c584 100644 --- a/App/Waybill/model.py +++ b/App/Waybill/model.py @@ -103,7 +103,9 @@ def transaction_order_model(user_id: int, current_date: date): _sql = sql_provider.get('good_price.sql', dict( e_prod_id = int(key) )) - price = select_list(db_config, _sql)[0][0] + cursor.execute(_sql) + result = cursor.fetchone() + price = result[0] _sql = sql_provider.get('insert_order_line.sql', dict(e_order_id = order_id,