From 0cf736f10d97ae84fbcdb662f6be0ef2dbd66a81 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Tue, 6 Mar 2012 19:46:59 +0100 Subject: [PATCH] display only real accounts --- modules/hsbc/pages/accounts.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/hsbc/pages/accounts.py b/modules/hsbc/pages/accounts.py index 11ba8fa6..3108a718 100644 --- a/modules/hsbc/pages/accounts.py +++ b/modules/hsbc/pages/accounts.py @@ -43,6 +43,9 @@ class AccountsListPage(BasePage): account.label = a.text.strip() account.link_id = a.attrib['href'] + if not 'CPT_IdPrestation' in account.link_id: + continue + tag = tds[2].find('font') if tag is None: tag = tds[2]