From f504237e916150731d11ce833fa23d2b6e815af0 Mon Sep 17 00:00:00 2001 From: Red S Date: Mon, 23 Oct 2023 11:29:02 -0700 Subject: [PATCH] fix: #85, balance dates were returning function instead of date --- beancount_reds_importers/importers/stanchart/scbbank.py | 2 +- beancount_reds_importers/importers/unitedoverseas/uobcard.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/beancount_reds_importers/importers/stanchart/scbbank.py b/beancount_reds_importers/importers/stanchart/scbbank.py index 00a5899..6a73fb7 100644 --- a/beancount_reds_importers/importers/stanchart/scbbank.py +++ b/beancount_reds_importers/importers/stanchart/scbbank.py @@ -50,7 +50,7 @@ def prepare_raw_file(self, rdr): def get_balance_statement(self, file=None): """Return the balance on the first and last dates""" - date = self.get_balance_assertion_date + date = self.get_balance_assertion_date() if date: rdr = self.read_raw(file) rdr = self.prepare_raw_file(rdr) diff --git a/beancount_reds_importers/importers/unitedoverseas/uobcard.py b/beancount_reds_importers/importers/unitedoverseas/uobcard.py index 65ec243..2dfc6b7 100644 --- a/beancount_reds_importers/importers/unitedoverseas/uobcard.py +++ b/beancount_reds_importers/importers/unitedoverseas/uobcard.py @@ -68,7 +68,7 @@ def prepare_raw_file(self, rdr): def get_balance_statement(self, file=None): """Return the balance on the first and last dates""" - date = self.get_balance_assertion_date + date = self.get_balance_assertion_date() if date: balance_row = self.get_row_by_label(file, 'Statement Balance:') units, currency = balance_row[1], balance_row[2]