From d168f42ba3d9e9ba440109f6e32cfe6c7e729db6 Mon Sep 17 00:00:00 2001 From: Gerwin van der Lugt Date: Thu, 2 Apr 2020 12:05:44 +0200 Subject: [PATCH] Fixed bug where SnelStart would detect different bank fee transactions as similar --- revolut.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/revolut.py b/revolut.py index 8e84f5d..6c2f6fe 100644 --- a/revolut.py +++ b/revolut.py @@ -27,7 +27,7 @@ DATETIME_FORMAT = DATE_FORMAT + TIME_FORMAT FEE_NAME = 'Revolut' FEE_IBAN = '' -FEE_DESCRIPTION = 'Bank transaction fee' +FEE_DESCRIPTION_FORMAT = 'Bank transaction fee {}' FEE_DATETIME_DELTA = timedelta(seconds=1) @@ -118,7 +118,9 @@ class RevolutCsvReader: amount=fee, name=FEE_NAME, iban=FEE_IBAN, - description=FEE_DESCRIPTION, + # include timestamp of transaction to make sure that SnelStart + # does not detect similar transactions as the same one + description=FEE_DESCRIPTION_FORMAT.format(int(completed_datetime.timestamp())), datetime=completed_datetime + FEE_DATETIME_DELTA, before_balance=balance - fee, after_balance=balance)