From 160703d3cb7d524a0558d4ce48ed11a712632743 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Wed, 15 Jan 2020 15:34:57 +0100 Subject: [PATCH] Update output --- ofx_processor/__init__.py | 2 +- ofx_processor/main.py | 9 +++++++-- pyproject.toml | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ofx_processor/__init__.py b/ofx_processor/__init__.py index ae73625..bbab024 100644 --- a/ofx_processor/__init__.py +++ b/ofx_processor/__init__.py @@ -1 +1 @@ -__version__ = "0.1.3" +__version__ = "0.1.4" diff --git a/ofx_processor/main.py b/ofx_processor/main.py index d1e319e..50d1bc3 100644 --- a/ofx_processor/main.py +++ b/ofx_processor/main.py @@ -26,8 +26,6 @@ def cli(ofx_filename): for transaction in ofx.statements[0].transactions: if "CB****" in transaction.name: - click.secho("Edited transaction {}".format(transaction.checknum), fg="blue") - name = transaction.name memo = transaction.memo conversion = re.compile(r"\d+,\d{2}[a-zA-Z]{3}") @@ -39,6 +37,13 @@ def cli(ofx_filename): transaction.name = memo transaction.memo = name + click.secho( + "Edited transaction {} ({})".format( + transaction.checknum, transaction.name + ), + fg="blue", + ) + header = str(make_header(version=102)) root = ofx.to_etree() data = ElementTree.tostring(root).decode() diff --git a/pyproject.toml b/pyproject.toml index f0f963b..5e05ce1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "ofx-processor" -version = "0.1.3" +version = "0.1.4" description = "Personal ofx processor" readme = "README.md" license = "GPL-3.0-or-later"