From d29ab5f7dfce7d475f6579f5fcfe1220039dedfe Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Thu, 30 Jul 2015 11:57:52 +0200 Subject: [PATCH] fix getting history for card accounts --- modules/cragr/web/browser.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/cragr/web/browser.py b/modules/cragr/web/browser.py index 3669d2a0..9162ed7d 100644 --- a/modules/cragr/web/browser.py +++ b/modules/cragr/web/browser.py @@ -170,6 +170,10 @@ class Cragr(Browser): if account._link is None: return + # card accounts need to get an updated link + if account.type == Account.TYPE_CARD: + account = self.get_account(account.id) + date_guesser = LinearDateGuesser() self.location(account._link)