finished sell rework and some other minor fixes

This commit is contained in:
Manuel Simon Hirsig
2015-10-04 16:14:53 +02:00
parent 9bb60c7e43
commit 352afd81ac
8 changed files with 75 additions and 76 deletions
+3 -3
View File
@@ -80,9 +80,9 @@ function scan()
scan_auctions(count, function() --;
local total_pages = math.ceil(total_count / AUCTIONS_PER_PAGE)
state.total_pages = math.ceil(total_count / AUCTIONS_PER_PAGE)
state.page = state.job.next_page and state.job.next_page(state.page, total_pages)
state.page = state.job.next_page and state.job.next_page(state.page, state.total_pages)
if state.page then
return scan()
@@ -114,7 +114,7 @@ end
function submit_query(k)
if state.page then
wait_for_callback(state.job.on_start_page, {state.page}, function() --;
wait_for_callback(state.job.on_start_page, {state.page, state.total_pages}, function() --;
controller().wait(CanSendAuctionQuery, function() --;
wait_for_results(k)
QueryAuctionItems(