refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-29 23:10:14 +02:00
parent a9c565257a
commit ecfafb71b1
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -418,10 +418,10 @@ function suggestions(filter)
return suggestions
end
function public.filter_string(filter)
function public.filter_string(components)
local query_builder = query_builder()
for _, component in filter.components do
for _, component in components do
if component[1] == 'blizzard' then
query_builder.append(filter[4] or filter[3])
elseif component[1] == 'operator' then