We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3fbed4b + 42e61a4 commit 7700579Copy full SHA for 7700579
atwiki/core.py
@@ -72,6 +72,17 @@ def get_tags(self):
72
count += 1
73
yield {'name': tag_name, 'weight': tag_weight}
74
if count == 0: break
75
+
76
+ pagerArea = soup.find('div', attrs={'class': 'cmd_tag'}).find('div')
77
+ if pagerArea is None:
78
+ # Pager area will not be shown when tag list fits in one page.
79
+ assert index == 0
80
+ break
81
+ pagers = pagerArea.findAll('a')
82
+ if len(pagers) == 1:
83
+ if pagers[0].attrs['href'].endswith('/?p={}'.format(index - 1)):
84
+ # Valid pager found, and no more tags.
85
86
index += 1
87
time.sleep(self._sleep)
88
0 commit comments