From d6af5e0e17884cd6c3c8e8f65be59205411c44db Mon Sep 17 00:00:00 2001 From: Is Isilon Date: Sun, 7 Feb 2016 20:14:01 +0800 Subject: [PATCH] No rate limit for cached results --- public/js/main.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/public/js/main.js b/public/js/main.js index 23dbb40..b5e7ab0 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -159,8 +159,13 @@ function DoJob() { var currentKw = keywordsToQuery[keywordsToQueryIndex]; if (currentKw[currentKw.length - 1] != '✓') { QueryKeyword(currentKw); + keywordsToQueryIndex++; + } else { + // we didn't do a query immediatly go to next query + keywordsToQueryIndex++; + DoJob(); } - keywordsToQueryIndex++; + } else { if (numOfInitialKeywords != keywordsToQuery.length) { doWork = false; @@ -331,6 +336,9 @@ function QueryKeyword(search) { markAsDone(search); permuteResultsToQueue(retList); queryLock = false; + + // we didn't do a query immediatly go to next query + DoJob(); } else { // search not done, lets do the query