From d81d664aa436d52d8d5a9ef105291d77a3dd9a36 Mon Sep 17 00:00:00 2001 From: Vincent Ardisson Date: Thu, 9 Aug 2018 14:28:25 +0200 Subject: [PATCH] [hsbc] use parent account currency for card accounts --- modules/hsbc/browser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/hsbc/browser.py b/modules/hsbc/browser.py index 07058beeed..8c7f66a500 100644 --- a/modules/hsbc/browser.py +++ b/modules/hsbc/browser.py @@ -176,6 +176,8 @@ def get_accounts_list(self): card_page = self.open(a.url).page parent_id = card_page.get_parent_id() a.parent = find_object(self.accounts_list.values(), id=parent_id) + if a.parent and not a.currency: + a.currency = a.parent.currency yield a def go_post(self, url, data=None): -- GitLab