Commit c2c8179b authored by Andras Bartok's avatar Andras Bartok Committed by Romain Bignon

[creditdunord] Json key change

parent e72c0e9f
......@@ -174,7 +174,7 @@ class LabelsPage(LoggedPage, JsonPage):
def get_labels(self):
synthesis_labels = ["Synthèse"]
loan_labels = ["Crédits en cours", "Crédits perso et immo", "Crédits"]
for element in Dict('donnees/0/submenu')(self.doc):
for element in Dict('donnees/1/submenu')(self.doc):
if CleanText(Dict('label'))(element) in synthesis_labels:
synthesis_label = CleanText(Dict('link'))(element).split("/")[-1]
if CleanText(Dict('label'))(element) in loan_labels:
......
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