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

This commit is contained in:
bn_user 2025-09-09 06:40:47 +00:00
parent 8d2afb9615
commit 99feda4a3d
1 changed files with 2 additions and 0 deletions

View File

@ -267,6 +267,8 @@ def split_subkonto_from_1C(**kwargs):
from public.oborotno_salbdovaya_vedomostb osv
where osv.subkonto2 not in (select dst2.subkonto2 from public.dict_subkonto_two dst2)
""", engine)
if df.empty:
return pd.DataFrame(columns=['subkonto2', 'naimenovanie', 'nomer', 'date_begin', 'date_end'])
result_df = df['subkonto2'].apply(parse_contract_cell)
return result_df.to_dict(orient='records')