Обновить dags/fin_porfel.py
This commit is contained in:
parent
20708199de
commit
7edf1391ca
|
|
@ -51,9 +51,9 @@ def upsert_list_fin_portfel(**kwargs):
|
|||
with engine.begin() as conn:
|
||||
if not df.empty:
|
||||
conn.execute("CREATE TEMP TABLE temp_fin_porfel (schet text null, subkonto2 text null, summa_dogovora text null, percent_value text null)")
|
||||
df2 = pd.read_sql("select * from temp_fin_porfel", con=conn)
|
||||
return df2.to_dict(orient='records')
|
||||
df.to_sql('temp_fin_porfel', con=conn, if_exists='append', index=False, method='multi')
|
||||
df2.read_sql("select * from temp_fin_porfel", con=conn)
|
||||
return df2.to_dict(orient='records')
|
||||
conn.execute
|
||||
("""
|
||||
INSERT INTO public.fin_porfel
|
||||
|
|
|
|||
Loading…
Reference in New Issue