Line 76:
Line 76:
local from = numberKey('from', context, n, 1)
local from = numberKey('from', context, n, 1)
local to = numberKey('to', context, n, 500)
local to = numberKey('to', context, n, 500)
−
return Iterator.equipmentBy(context, n, function(_, i)
+
return Iterator.equipmentBy(context, n, function(e)
−
-- use _id?
+
return e._id >= from and e._id <= to
−
return i >= from and i <= to
end)
end)
end
end