Push to YNAB only when transactions exist in BPVF

This commit is contained in:
Gabriel Augendre 2020-02-12 00:07:41 +01:00
parent 35c715a03a
commit f2b80d4db4
No known key found for this signature in database
GPG key ID: 1E693F4CE4AEE7B4

View file

@ -102,7 +102,7 @@ def cli(ofx_filename, push_to_ynab, output_file):
f.write(header + data)
click.secho("{} written".format(processed_file), fg="green")
if push_to_ynab:
if push_to_ynab and ynab_transactions:
ynab.push_transactions(ynab_transactions, "bpvf")