Commit d28e30cf authored by Maxime Gasselin's avatar Maxime Gasselin Committed by Romain Bignon

[creditdunord] Fix loan url

With the last patch, a lower case were add to the url. We had to keep
uppercase. Nevertheless we have to keep lower case matching.

Closes: 37153@sibi
parent 61dfc90b
......@@ -179,8 +179,8 @@ class LabelsPage(LoggedPage, JsonPage):
for element in Dict('submenu')(key):
if Lower(CleanText(Dict('label')))(element) in synthesis_labels:
synthesis_label = CleanText(Dict('link'))(element).split("/")[-1]
if CleanText(Dict('label'))(element).lower() in loan_labels:
loan_label = Lower(CleanText(Dict('link')))(element).split("/")[-1]
if Lower(CleanText(Dict('label')))(element) in loan_labels:
loan_label = CleanText(Dict('link'))(element).split("/")[-1]
return (synthesis_label, loan_label)
......
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