From f2b80d4db46a63121590472036132ecb613c7721 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Wed, 12 Feb 2020 00:07:41 +0100 Subject: [PATCH] Push to YNAB only when transactions exist in BPVF --- ofx_processor/bpvf_processor/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ofx_processor/bpvf_processor/main.py b/ofx_processor/bpvf_processor/main.py index 37f70ad..3240bc7 100644 --- a/ofx_processor/bpvf_processor/main.py +++ b/ofx_processor/bpvf_processor/main.py @@ -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")