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: