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

This commit is contained in:
bn_user 2025-11-13 21:19:10 +00:00
parent cfcda0daf3
commit 1a93027770
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ def get_db_engine():
def pogasheniya(**kwargs):
engine = get_db_engine()
query = """
query = text("""
SELECT
osv.schet
, osv.uid_subkonto2 as uid_dogovor
@ -55,7 +55,7 @@ def pogasheniya(**kwargs):
FROM lizingi_garantii osv
LEFT JOIN pogasheniya p on p.nomer = osv.agreement_num
WHERE p.uid_dogovor is null
"""
""")
df = pd.read_sql(query, engine)
with engine.begin() as conn:
if not df.empty: