Skip to content

Commit

Permalink
fix wikiApi and allow retrieval of more than 500 items
Browse files Browse the repository at this point in the history
  • Loading branch information
jimkont committed Mar 22, 2016
1 parent b8fc6d3 commit d48731c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class WikiApi(url: URL, language: Language)
retrievePagesByPageID(pageIds).foreach(f)

//Retrieve remaining pages
for(continuePage <- response \ "query-continue" \ "allpages" \ "@apcontinue" headOption)
for(continuePage <- response \ "continue" \ "@apcontinue" headOption)
{
// TODO: use iteration instead of recursion
retrievePagesByNamespace(namespace, f, continuePage.text)
Expand Down

0 comments on commit d48731c

Please sign in to comment.