Dict not hashable, also not needed

Quick fix.
pull/182/head
Pi R. Squared 10 years ago
parent 399f609d70
commit f31e4e6451

@ -226,7 +226,7 @@ def getPageTitlesAPI(config={}, session=None):
allpages = jsontitles['query']['allpages']
# Hack for old versions of MediaWiki API where result is dict
if isinstance(allpages, dict):
allpages = set(allpages.values())
allpages = allpages.values()
titles += [page['title']
for page in allpages]
if len(titles) != len(set(titles)):

Loading…
Cancel
Save