Обновить dags/split_subkonto2.py
This commit is contained in:
parent
fb730103f0
commit
a223dd924d
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue