Fix paging on new website

This commit is contained in:
Florent 2013-07-03 11:34:32 +02:00
commit 1928f2a500

View file

@ -83,11 +83,11 @@ class AccountHistory(BasePage):
return self.operations return self.operations
def get_next_url(self): def get_next_url(self):
items = self.document.getroot().cssselect('ul.mainmenu li') items = self.document.getroot().cssselect('ul.menu-lvl-0 li')
current = False current = False
for li in reversed(items): for li in reversed(items):
if li.attrib.get('class', '') == 'selected': if li.attrib.get('class', '') == 'active':
current = True current = True
elif current: elif current:
a = li.find('a') a = li.find('a')