green_t refactoring
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
aux 'auctions_tab' local scan = aux.scan
|
||||
|
||||
auction_records = {}
|
||||
auction_records = t
|
||||
|
||||
function LOAD()
|
||||
create_frames()
|
||||
@@ -29,7 +29,7 @@ function public.scan_auctions()
|
||||
update_listing()
|
||||
scan.start{
|
||||
type = 'owner',
|
||||
queries = {{ blizzard_query = {} }},
|
||||
queries = {{blizzard_query = t}},
|
||||
on_page_loaded = function(page, total_pages)
|
||||
status_bar:update_status(100 * (page - 1) / total_pages, 0)
|
||||
status_bar:set_text(format('Scanning (Page %d / %d)', page, total_pages))
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
aux 'bids_tab' local scan = aux.scan
|
||||
|
||||
auction_records = {}
|
||||
auction_records = t
|
||||
|
||||
function LOAD()
|
||||
create_frames()
|
||||
@@ -29,7 +29,7 @@ function public.scan_bids()
|
||||
update_listing()
|
||||
scan.start{
|
||||
type = 'bidder',
|
||||
queries = {{ blizzard_query = {} }},
|
||||
queries = {{blizzard_query=t}},
|
||||
on_page_loaded = function(page, total_pages)
|
||||
status_bar:update_status(100 * (page - 1) / total_pages, 0)
|
||||
status_bar:set_text(format('Scanning (Page %d / %d)', page, total_pages))
|
||||
@@ -58,7 +58,7 @@ end
|
||||
|
||||
do
|
||||
local scan_id = 0
|
||||
local IDLE, SEARCHING, FOUND = {}, {}, {}
|
||||
local IDLE, SEARCHING, FOUND = 1, 2, 3
|
||||
local state = IDLE
|
||||
local found_index
|
||||
|
||||
|
||||
@@ -517,7 +517,7 @@ function create_frames()
|
||||
if filter_util.filters[text] and filter_util.filters[text].input_type ~= '' then
|
||||
local _, _, suggestions = filter_util.parse_filter_string(text..'/')
|
||||
filter_parameter_input:SetNumeric(filter_util.filters[text].input_type == 'number')
|
||||
filter_parameter_input.complete = completion.complete(function() return suggestions or {} end)
|
||||
filter_parameter_input.complete = completion.complete(function() return suggestions or O end)
|
||||
filter_parameter_input:Show()
|
||||
else
|
||||
filter_parameter_input:Hide()
|
||||
|
||||
@@ -346,7 +346,7 @@ function public.execute(resume, real_time)
|
||||
end
|
||||
new_recent_search(filter_string, join(map(copy(queries), function(filter) return filter.prettified end), ';'))
|
||||
else
|
||||
current_search.records = {}
|
||||
current_search.records = t
|
||||
current_search.table:SetDatabase(current_search.records)
|
||||
if current_search.real_time ~= real_time then
|
||||
current_search.table:Reset()
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
aux 'search_tab'
|
||||
|
||||
_G.aux_favorite_searches = {}
|
||||
_G.aux_recent_searches = {}
|
||||
_G.aux_favorite_searches = t
|
||||
_G.aux_recent_searches = t
|
||||
|
||||
function update_search_listings()
|
||||
local favorite_search_rows = {}
|
||||
local favorite_search_rows = t
|
||||
for i, favorite_search in _G.aux_favorite_searches do
|
||||
local name = strsub(favorite_search.prettified, 1, 250)
|
||||
tinsert(favorite_search_rows, {
|
||||
@@ -15,7 +15,7 @@ function update_search_listings()
|
||||
end
|
||||
favorite_searches_listing:SetData(favorite_search_rows)
|
||||
|
||||
local recent_search_rows = {}
|
||||
local recent_search_rows = t
|
||||
for i, recent_search in _G.aux_recent_searches do
|
||||
local name = strsub(recent_search.prettified, 1, 250)
|
||||
tinsert(recent_search_rows, {
|
||||
|
||||
Reference in New Issue
Block a user