From 662e1d25d5fda77c70047007295b96d54f178958 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Thu, 23 Jun 2016 11:28:37 -0600 Subject: [PATCH] Provide a sane default for getting transactions --- vanth/ofx.py | 1 + 1 file changed, 1 insertion(+) diff --git a/vanth/ofx.py b/vanth/ofx.py index 45e392b..685e900 100644 --- a/vanth/ofx.py +++ b/vanth/ofx.py @@ -126,6 +126,7 @@ def body(institution, account, start): return "\r\n" + signonmsg(institution, account) + "\r\n" + bankmsg(institution, account, start) + "\r\n" def query_transactions(institution, account, start=None): + start = start or datetime.datetime.now() - datetime.timedelta(days=14) return header() + (2*"\r\n") + body(institution, account, start) + "\r\n"