diff --git a/modules/caissedepargne/browser.py b/modules/caissedepargne/browser.py index c45cd5c306401c93ad3987981414d80b26ffe97f..99dbacd61f00e31c91b593f3c8a29f495f4f6595 100644 --- a/modules/caissedepargne/browser.py +++ b/modules/caissedepargne/browser.py @@ -333,7 +333,7 @@ def loans_conso(self): days = ('Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun') month = ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec') now = datetime.datetime.today() - d = '%s %s %s %s:%s:%s GMT 0100 (CET)' % (days[now.weekday()], month[now.month - 1], now.year, now.hour, format(now.minute, "02"), now.second) + d = '%s %s %s %s %s:%s:%s GMT+0100 (heure normale d’Europe centrale)' % (days[now.weekday()], now.day, month[now.month - 1], now.year, now.hour, format(now.minute, "02"), now.second) if self.home.is_here(): msg = self.page.loan_unavailable_msg() if msg: diff --git a/modules/caissedepargne/pages.py b/modules/caissedepargne/pages.py index 89dc39d4b40749097029d93acd6306a95129cd40..967048437b5402035555fdb1a89701923cbce6b3 100644 --- a/modules/caissedepargne/pages.py +++ b/modules/caissedepargne/pages.py @@ -459,6 +459,9 @@ def get_loan_list(self): account._card_links = [] if "renouvelables" in CleanText('.')(title): + if 'JSESSIONID' in self.session.cookies: + # Need to delete this to access the consumer loans space (a new one will be created) + del self.browser.session.cookies['JSESSIONID'] self.go_loans_conso(tr) d = self.browser.loans_conso() if d: