From e3485fb185d67e91771dbb0b9661fba187bfd2cd Mon Sep 17 00:00:00 2001 From: Kitof Date: Mon, 15 Jul 2013 13:43:12 +0200 Subject: [PATCH] Bug fix to use web site instead of mobile website for ca-centrest, and probably others (Fix #1035) Signed-off-by: Kitof Signed-off-by: Romain Bignon --- modules/cragr/web/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cragr/web/pages.py b/modules/cragr/web/pages.py index d8222f35..2390625c 100644 --- a/modules/cragr/web/pages.py +++ b/modules/cragr/web/pages.py @@ -32,7 +32,7 @@ class HomePage(BasePage): def get_post_url(self): for script in self.document.xpath('//script'): text = script.text - if text is None or not 'CCPTE' in text: + if text is None: continue m = re.search(r'var chemin = "([^"]+)"', text, re.MULTILINE)