Commit bba7e1b8 authored by Tony Malto's avatar Tony Malto Committed by Romain Bignon

[oney] detect revolving accounts as such

parent 30c861fb
Pipeline #1284 failed with stages
in 62 minutes and 15 seconds
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment