Module:Progression rainbow/sandbox: Difference between revisions

Content deleted Content added
try and solve the ipairs problem
already init the one in the table so use that value
Line 85:
end
else
-- Parameter 9 and others is the total non-project, so exclude
-- TODO: I can't get this to work cleanly with (i)pairs
for i, class in ipairs(classes) do
-- 'or 0class.count' to keep us safe from a non-numeric value in args.
class.count = tonumber(args[i]) or 0class.count
sum_classes = sum_classes + class.count
end