diff --git a/modules/oney/pages.py b/modules/oney/pages.py index 14813dce25fa54d2a6406729a8afdf3238e21e85..f87b270fca90f931375f60c6057b45a085cd0d67 100644 --- a/modules/oney/pages.py +++ b/modules/oney/pages.py @@ -216,7 +216,13 @@ class CreditAccountPage(LoggedPage, HTMLPage): class get_account(ItemElement): klass = Account - obj_type = Account.TYPE_CARD + def obj_type(self): + msg = u'Crédit renouvelable auquel la carte est associée' + revolving_info_title = CleanText('//div[@id="mod-creditrenouvelable"]//span[@class="titre"]')(self) + if msg in revolving_info_title: + return Account.TYPE_REVOLVING_CREDIT + return Account.TYPE_CARD + obj__site = 'other' def obj_label(self):