forgot to make pages local
This commit is contained in:
+1
-1
@@ -108,7 +108,7 @@ AUX_data_sharer:SetScript("OnEvent", function()
|
||||
write_record(auction_record.item_key, item_record)
|
||||
--AuxAddon:SendCommMessage("GUILD", item_key, unit_buyout_price) relies on acecomm
|
||||
if aux.account_data.sharing == true then
|
||||
if pages < 15 or pages == nil then
|
||||
if pages == nil or pages < 15 then --sometimes pages is nil, not entirely sure why but we'll assume it's nothing worrying xd
|
||||
if GetChannelName("LFT") ~= 0 then
|
||||
SendChatMessage("AuxData," .. item_key .."," .. unit_buyout_price , "CHANNEL", nil, GetChannelName("LFT"))
|
||||
--print("sent")
|
||||
|
||||
+3
-2
@@ -127,12 +127,13 @@ end
|
||||
|
||||
function scan_page(i)
|
||||
i = i or 1
|
||||
local pages
|
||||
|
||||
if i > PAGE_SIZE then
|
||||
do (get_state().params.on_page_scanned or pass)() end
|
||||
if get_query().blizzard_query and get_state().page < last_page(get_state().total_auctions) then
|
||||
get_state().page = get_state().page + 1
|
||||
Pages = last_page(get_state().total_auctions)
|
||||
pages = last_page(get_state().total_auctions)
|
||||
return submit_query()
|
||||
else
|
||||
return scan()
|
||||
@@ -146,7 +147,7 @@ function scan_page(i)
|
||||
auction_info.blizzard_query = get_query().blizzard_query
|
||||
auction_info.query_type = get_state().params.type
|
||||
|
||||
history.process_auction(auction_info, Pages)
|
||||
history.process_auction(auction_info, pages)
|
||||
|
||||
if (get_state().params.auto_buy_validator or pass)(auction_info) and auction_info.buyout_price >0 and auction_info.owner ~= UnitName("player") then
|
||||
local send_signal, signal_received = aux.signal()
|
||||
|
||||
Reference in New Issue
Block a user