From 474e3b0fd5c20b816fa6cda326872f3472f35952 Mon Sep 17 00:00:00 2001 From: Quentin Defenouillere Date: Wed, 16 Sep 2020 10:58:23 +0200 Subject: [PATCH] [oney] Set account balance for loans Loans currently have balance == NotLoaded, which is a problem for the backend: "TypeError: '>' not supported between instances of 'NotAvailableType' and 'int'" --- modules/oney/pages.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/oney/pages.py b/modules/oney/pages.py index cdcb03d932..c584e11620 100644 --- a/modules/oney/pages.py +++ b/modules/oney/pages.py @@ -212,6 +212,7 @@ class get_loan(ItemElement): obj_type = Account.TYPE_LOAN obj__site = 'other' + obj_balance = 0 obj_label = CleanText('//div[@class="conteneur"]/h1') obj_number = obj_id = CleanText('//td[contains(text(), "Mon numéro de compte")]/following-sibling::td', replace=[(' ', '')]) obj_coming = CleanDecimal.US('//td[strong[contains(text(), "Montant de la")]]/following-sibling::td/strong') -- GitLab