From a223dd924dcf9223649250130fa968e11b313902 Mon Sep 17 00:00:00 2001 From: bn_user Date: Tue, 9 Sep 2025 14:23:43 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20dags/split=5Fsubkonto2.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/split_subkonto2.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dags/split_subkonto2.py b/dags/split_subkonto2.py index dea8340..5563d73 100644 --- a/dags/split_subkonto2.py +++ b/dags/split_subkonto2.py @@ -245,7 +245,9 @@ def parse_contract_cell(cell_text): def read_dict_subkonto2_db(**kwargs): engine = get_db_engine() - # Using triple quotes for better readability + # Extract parameters from kwargs if needed + # param_value = kwargs.get('param_name') + query = """ SELECT DISTINCT osv.schet as schet @@ -262,6 +264,8 @@ def read_dict_subkonto2_db(**kwargs): """ try: + # If you need to pass parameters, do it like this: + # df = pd.read_sql(query, engine, params=(param_value,)) df = pd.read_sql(query, engine) return df.to_dict(orient='records') except Exception as e: