tbc loop change part 2
This commit is contained in:
@@ -152,8 +152,7 @@ end
|
||||
|
||||
function set_form(filter)
|
||||
clear_form()
|
||||
for i = 1, getn(filter.components) do
|
||||
local component = filter.components[i]
|
||||
for _, component in ipairs(filter.components) do
|
||||
if component[1] == 'blizzard' then
|
||||
blizzard_query[component[2]] = component[4]
|
||||
else
|
||||
@@ -199,7 +198,7 @@ function formatted_post_filter(components)
|
||||
local stack = temp-T
|
||||
local str = ''
|
||||
|
||||
for i = 1, getn(components) do
|
||||
for i, component in ipairs(components) do
|
||||
local component = components[i]
|
||||
if no_line_break then
|
||||
str = str .. ' '
|
||||
|
||||
@@ -541,8 +541,8 @@ favorite_searches_listing:SetColInfo{{name='Auto Buy', width=.07, align='CENTER'
|
||||
recent_searches_listing = listing.new(frame.saved.recent)
|
||||
recent_searches_listing:SetColInfo{{name='Recent Searches', width=1}}
|
||||
|
||||
for listing in temp-S(favorite_searches_listing, recent_searches_listing) do
|
||||
for k, v in handlers do
|
||||
for listing in pairs(temp-S(favorite_searches_listing, recent_searches_listing)) do
|
||||
for k, v in pairs(handlers) do
|
||||
listing:SetHandler(k, v)
|
||||
end
|
||||
end
|
||||
@@ -175,10 +175,10 @@ function start_real_time_scan(query, search, continuation)
|
||||
end,
|
||||
on_complete = function()
|
||||
local map = temp-T
|
||||
for _, record in search.records do
|
||||
for _, record in pairs(search.records) do
|
||||
map[record.sniping_signature] = record
|
||||
end
|
||||
for _, record in new_records do
|
||||
for _, record in pairs(new_records) do
|
||||
map[record.sniping_signature] = record
|
||||
end
|
||||
release(new_records)
|
||||
@@ -352,7 +352,7 @@ function M.execute(resume, real_time)
|
||||
if real_time then
|
||||
start_real_time_scan(queries[1], nil, continuation)
|
||||
else
|
||||
for _, query in queries do
|
||||
for _, query in pairs(queries) do
|
||||
query.blizzard_query.first_page = current_search.first_page
|
||||
query.blizzard_query.last_page = current_search.last_page
|
||||
end
|
||||
|
||||
@@ -84,7 +84,7 @@ handlers = {
|
||||
|
||||
function get_auto_buy_validator()
|
||||
local validators = T
|
||||
for _, search in favorite_searches do
|
||||
for _, search in pairs(favorite_searches) do
|
||||
if search.auto_buy then
|
||||
local queries, error = filter_util.queries(search.filter_string)
|
||||
if queries then
|
||||
|
||||
Reference in New Issue
Block a user