sort of fixed the empty search bug

This commit is contained in:
Manuel Simon Hirsig
2015-09-09 19:19:11 +02:00
parent 2a8b12f154
commit a7f3228441
+3 -6
View File
@@ -62,7 +62,6 @@ function Auctionator_Scan_Start(job)
end
currentJob = job
currentPage = 0
scanData = {}
state = STATE_PREQUERY
end
@@ -103,7 +102,7 @@ function submitQuery()
currentJob.query.qualityIndex
)
state = STATE_POSTQUERY
currentPage = currentPage + 1
currentPage = currentPage and currentPage + 1 or 1
end
-----------------------------------------
@@ -117,9 +116,7 @@ function processQueryResults()
local numBatchAuctions, totalAuctions = GetNumAuctionItems("list")
if totalAuctions >= NUM_AUCTION_ITEMS_PER_PAGE then
Auctionator_SetMessage("Scanning auctions: page "..currentPage.." ...")
end
Auctionator_SetMessage("Scanning auctions: page "..currentPage.." ...")
for i = 1, numBatchAuctions do
@@ -154,7 +151,7 @@ function processQueryResults()
end
end
if numBatchAuctions == NUM_AUCTION_ITEMS_PER_PAGE then
if totalAuctions > (currentPage - 1) * NUM_AUCTION_ITEMS_PER_PAGE + numBatchAuctions then
state = STATE_PREQUERY
else
Auctionator_Scan_Complete()