refactoring
This commit is contained in:
+2
-2
@@ -221,7 +221,7 @@ function post_auctions()
|
||||
unit_buyout_price,
|
||||
stack_count,
|
||||
function(posted)
|
||||
for i=1,posted do
|
||||
for i = 1, posted do
|
||||
record_auction(key, stack_size, unit_start_price, unit_buyout_price, duration_code, UnitName('player'))
|
||||
end
|
||||
update_inventory_records()
|
||||
@@ -405,7 +405,7 @@ function update_inventory_records()
|
||||
if info.auctionable(item_info.tooltip, nil, item_info.lootable) then
|
||||
if not auctionable_map[item_info.item_key] then
|
||||
local availability = t
|
||||
for i=0,10 do
|
||||
for i = 0, 10 do
|
||||
availability[i] = 0
|
||||
end
|
||||
availability[charge_class] = item_info.count
|
||||
|
||||
@@ -388,7 +388,7 @@ function initialize_quality_dropdown()
|
||||
update_form()
|
||||
end
|
||||
UIDropDownMenu_AddButton(-object('text', ALL, 'value', -1, 'func', on_click))
|
||||
for i=0,4 do
|
||||
for i = 0, 4 do
|
||||
UIDropDownMenu_AddButton(-object('text', _G['ITEM_QUALITY'..i..'_DESC'], 'value', i, 'func', on_click))
|
||||
end
|
||||
end
|
||||
|
||||
@@ -227,7 +227,7 @@ function start_search(queries, continuation)
|
||||
|
||||
if continuation then
|
||||
start_query, start_page = unpack(continuation)
|
||||
for i=1,start_query-1 do
|
||||
for i = 1, start_query - 1 do
|
||||
tremove(queries, 1)
|
||||
end
|
||||
queries[1].blizzard_query.first_page = (queries[1].blizzard_query.first_page or 0) + start_page - 1
|
||||
|
||||
Reference in New Issue
Block a user