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

This commit is contained in:
bn_user 2025-11-13 20:59:57 +00:00
parent 12cf25d36c
commit 7ad336d6e3
1 changed files with 1 additions and 1 deletions

View File

@ -64,8 +64,8 @@ def pogasheniya(**kwargs):
conn.execute("""
INSERT INTO public.pogasheniya (schet, uid_dogovor, name, nomer, date_begin, date_end)
SELECT * FROM temp_pogasheniya
DO UPDATE SET
ON CONFLICT (schet, uid_dogovor, nomer)
DO UPDATE SET
name = EXCLUDED.name,
agreement_num = EXCLUDED.agreement_num,
agreement_date = EXCLUDED.agreement_date,