owner ignore option improvement
This commit is contained in:
+1
-1
@@ -813,7 +813,7 @@ local methods = {
|
||||
-- return SortHelperFunc(a, b, 'percent')
|
||||
-- end
|
||||
-- as a last resort compare search signatures to ensure a total order
|
||||
return record_a.search_signature < record_b.search_signature
|
||||
return tostring(record_a) < tostring(record_b)
|
||||
else
|
||||
return ordering == Aux.sort.LT
|
||||
end
|
||||
|
||||
@@ -135,7 +135,7 @@ function public.auction(index, type)
|
||||
hyperlink = hyperlink,
|
||||
itemstring = item_info.itemstring,
|
||||
item_key = item_id..':'..suffix_id,
|
||||
search_signature = Aux.util.join({item_id, suffix_id, enchant_id, start_price, buyout_price, bid_price, aux_quantity, duration, high_bidder and 1 or 0, not aux_ignore_owner and owner or '?'}, ':'),
|
||||
search_signature = Aux.util.join({item_id, suffix_id, enchant_id, start_price, buyout_price, bid_price, aux_quantity, duration, high_bidder and 1 or 0, aux_ignore_owner and (Aux.is_player(owner) and 0 or 1) or (owner or '?')}, ':'),
|
||||
|
||||
name = name,
|
||||
texture = texture,
|
||||
|
||||
+1
-1
@@ -881,7 +881,7 @@ function private.refresh_entries()
|
||||
|
||||
scan_id = Aux.scan.start{
|
||||
type = 'list',
|
||||
no_wait_owner = true,
|
||||
ignore_owner = true,
|
||||
queries = { query },
|
||||
on_page_loaded = function(page, total_pages)
|
||||
private.status_bar:update_status(100 * (page + 1) / total_pages, 0) -- TODO
|
||||
|
||||
@@ -99,7 +99,7 @@ function private.wait_for_list_results(k)
|
||||
end
|
||||
|
||||
function private.owner_data_complete()
|
||||
if private.current_thread().params.no_wait_owner or aux_ignore_owner then
|
||||
if private.current_thread().params.ignore_owner or aux_ignore_owner then
|
||||
return true
|
||||
end
|
||||
local count, _ = GetNumAuctionItems(private.current_thread().params.type)
|
||||
@@ -188,7 +188,7 @@ function private.scan_auctions_helper(i, n, k)
|
||||
end
|
||||
|
||||
local auction_info = Aux.info.auction(i, private.current_thread().params.type)
|
||||
if auction_info then
|
||||
if auction_info and (auction_info.owner or private.current_thread().params.ignore_owner or aux_ignore_owner) then
|
||||
auction_info.index = i
|
||||
auction_info.page = private.current_thread().page
|
||||
auction_info.blizzard_query = private.current_query().blizzard_query
|
||||
|
||||
Reference in New Issue
Block a user