Mercurial > louis > ofxstatement-us-hsbc
changeset 8:164da24a2997
Minor adjustments
Made those changes a couple weeks ago, can't exactly remember why :s.
author | Louis Opter <kalessin@kalessin.fr> |
---|---|
date | Thu, 01 Dec 2016 17:14:11 -0800 |
parents | 829eb62755b0 |
children | 28548158a325 |
files | src/ofxstatement/plugins/us_hsbc/plugin.py src/ofxstatement/plugins/us_hsbc/transactions.py |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ofxstatement/plugins/us_hsbc/plugin.py Thu Nov 17 16:25:12 2016 -0800 +++ b/src/ofxstatement/plugins/us_hsbc/plugin.py Thu Dec 01 17:14:11 2016 -0800 @@ -95,8 +95,8 @@ return "XFER" logger.info( - "The transaction type for the following couldn't be determined and " - "will default to OTHER: {}".format(record) + "The transaction type for the following record couldn't be " + "determined and will default to OTHER: {}".format(record) ) return "OTHER"
--- a/src/ofxstatement/plugins/us_hsbc/transactions.py Thu Nov 17 16:25:12 2016 -0800 +++ b/src/ofxstatement/plugins/us_hsbc/transactions.py Thu Dec 01 17:14:11 2016 -0800 @@ -82,4 +82,5 @@ def enrich(sl: StatementLine, record: Record) -> None: + sl.payee = record.simple_description or record.category _TRNTYPE_TO_METHOD.get(sl.trntype, _enrich_generic)(sl, record)