refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-28 14:41:19 +02:00
parent c07c3dad6f
commit 60d4fc85b3
10 changed files with 74 additions and 66 deletions
+3 -3
View File
@@ -3,7 +3,7 @@ aux 'scan' local info, history = aux.info, aux.history
PAGE_SIZE = 50
do
local scan_states = {}
local scan_states = t
function public.start(params)
for old_state in present(scan_states[params.type]) do
@@ -18,7 +18,7 @@ do
end
function public.abort(scan_id)
local aborted = {}
local aborted = t
for type, state in scan_states do
if not scan_id or state.id == scan_id then
kill_thread(state.id)
@@ -108,7 +108,7 @@ function submit_query()
elseif state.params.type == 'owner' then
GetOwnerAuctionItems(state.page)
else
local blizzard_query = query.blizzard_query or {}
local blizzard_query = query.blizzard_query or t
QueryAuctionItems(
blizzard_query.name,
blizzard_query.min_level,