[weboob] [PATCH] seloger: fix xpath for looking into cities

Julien Danjou julien at danjou.info
Tue Mar 22 22:06:21 CET 2016


The first item only contains départements, the second one has cities
with the right codes.
---
 modules/seloger/pages.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/seloger/pages.py b/modules/seloger/pages.py
index 4ed29d3..efaffe6 100644
--- a/modules/seloger/pages.py
+++ b/modules/seloger/pages.py
@@ -30,7 +30,7 @@ from weboob.capabilities.housing import Housing, HousingPhoto, City
 class CitiesPage(JsonPage):
     @method
     class iter_cities(DictElement):
-        item_xpath = '0/values'
+        item_xpath = '1/values'
 
         class item(ItemElement):
             klass = City
-- 
2.7.4




More information about the weboob mailing list