Обновить dags/split_subkonto2.py
This commit is contained in:
parent
1b6bee4d71
commit
6fb86e9508
|
|
@ -303,7 +303,9 @@ def merge_dict_and_split_1C(**kwargs):
|
||||||
|
|
||||||
engine = get_db_engine()
|
engine = get_db_engine()
|
||||||
with engine.begin as conn:
|
with engine.begin as conn:
|
||||||
result_df.to_sql('public.dict_subkonto_two', con=conn, if_exists='append', index=False, method='multi')
|
conn.exucute('CREATE TEMP TABLE temp_dict_subkonto_two as SELECT * FROM public.dict_subkonto_two where 1=0')
|
||||||
|
result_df.to_sql('temp_dict_subkonto_two', con=conn, if_exists='append', index=False, method='multi')
|
||||||
|
conn.execute('INSERT INTO public.dict_subkonto_two SELECT * FROM temp_dict_subkonto_two')
|
||||||
|
|
||||||
return result_df.to_dict('Данные загружены!')
|
return result_df.to_dict('Данные загружены!')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue