Content deleted Content added
use correct array for pageIds |
didn't work, debugging |
||
Line 111:
for(i in articleList){
pageIds += '|' + articleList[i];
alert(i+' '+((i+1)%50 == 0) +' '+(i>=49) +' '+((i+1)%50 == 0 && i>=49));
//API limited to 50 titles per query
if( (i+1)%50 == 0 && i>=49){
alert(inside loop);
pageIds = pageIds.substr(1);
jobsLeft++;
Line 119 ⟶ 121:
}
}
alert('articlesList '+articlesList.length)
//Process remainder
pageIds = pageIds.substr(1);
|