Обновить dags/fin_porfel.py

This commit is contained in:
bn_user 2025-09-10 08:24:11 +00:00
parent 1455464fc1
commit a62b729e3c
1 changed files with 0 additions and 1 deletions

View File

@ -48,7 +48,6 @@ def upsert_list_fin_portfel(**kwargs):
and fp.subkonto2 is null and fp.subkonto2 is null
""" """
df = pd.read_sql(query, engine) df = pd.read_sql(query, engine)
return df.to_dict(orient='records')
with engine.begin() as conn: with engine.begin() as conn:
if not df.empty: if not df.empty:
conn.execute("CREATE TEMP TABLE temp_fin_porfel as SELECT * FROM public.fin_porfel WHERE 1=0") conn.execute("CREATE TEMP TABLE temp_fin_porfel as SELECT * FROM public.fin_porfel WHERE 1=0")