From 5f7059819c2c890d0816c283a58ed89b2a8231ac Mon Sep 17 00:00:00 2001 From: bn_user Date: Tue, 9 Sep 2025 06:23:07 +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, 3 insertions(+), 3 deletions(-) diff --git a/dags/split_subkonto2.py b/dags/split_subkonto2.py index 60361e3..eb6c3c5 100644 --- a/dags/split_subkonto2.py +++ b/dags/split_subkonto2.py @@ -303,9 +303,9 @@ def merge_dict_and_split_1C(**kwargs): engine = get_db_engine() with engine.begin() as conn: - #conn.exucute('CREATE TEMP TABLE temp_dict_subkonto_two as SELECT * FROM public.dict_subkonto_two where 1=0') - result_df.to_sql('dict_subkonto_two', con=conn, if_exists='append', index=False, method='multi', index_label='id') - #conn.execute('INSERT INTO public.dict_subkonto_two SELECT * FROM temp_dict_subkonto_two') + conn.exucute('CREATE TEMP TABLE temp_dict_subkonto_two as (subkonto2 text null, naimenovanie text null, nomer text null, date_begin text null, date_end text null)') + 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('Данные загружены!')