oops, use varargs

This commit is contained in:
osmarks 2018-08-16 10:46:46 +01:00
parent faf40cfb41
commit 78ec9193aa

View File

@ -97,8 +97,8 @@ local commands = {
reindex = function() reindex = function()
w.unwrap(w.query_by_type("storage", { type = "reindex" }), "requesting reindexing") w.unwrap(w.query_by_type("storage", { type = "reindex" }), "requesting reindexing")
end, end,
quantity = function(query_tokens) quantity = function(...)
local query = table.concat(query_tokens, " ") local query = table.concat({...}, " ")
local items = w.unwrap(w.query_by_type("storage", { local items = w.unwrap(w.query_by_type("storage", {
type = "search", type = "search",