From 5909a27006259f14af0ad33f35e49b17b1d76b9e Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Mon, 19 Sep 2011 10:19:00 +0200 Subject: [PATCH] fix parsing of status --- weboob/backends/aum/pages/profile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weboob/backends/aum/pages/profile.py b/weboob/backends/aum/pages/profile.py index 060cc969..75e1524b 100644 --- a/weboob/backends/aum/pages/profile.py +++ b/weboob/backends/aum/pages/profile.py @@ -265,12 +265,12 @@ class ProfilePage(PageBase): if (div.hasAttribute('style') and div.getAttribute('style') == "color:#ffffff;font-size:32px;font-weight:bold;letter-spacing:-2px" and hasattr(div.firstChild, 'data')): - if len(div.childNodes) > 1: + if len(div.childNodes) > 1: self.name = div.childNodes[1].data if (div.hasAttribute('style') and div.getAttribute('style') == "font-size:12px;font-weight:bold" and hasattr(div.firstChild, 'data')): - self.status = div.firstChild.data + self.status = div.childNodes[-1].data.strip() if div.hasAttribute('background'): m = self.PHOTO_REGEXP.match(div.getAttribute('background')) if m: