Module:Progression rainbow: Difference between revisions

Content deleted Content added
some cleaning
ok
Line 44:
-- I need to be able to access extensionTag in p._main
-- these are defined on frame
 
local project
if args['project'] and args['project'] ~= '' then
project = args['project']
else
project = nil
end
local classes = {
{count = 0, class = 'List', category = 'List-Class'},
Line 67 ⟶ 60:
{count = 0, class = 'Unassessed', category = 'Unassessed'}
}
 
local project
if args['project'] and args['project'] ~= '' then
project = args['project']
else
project = nil
end
-- set the value from arguments in classes, first column
local sum_classes = 0
if project then
for i, class in pairs(classes) do
if project then
class['count'] = category_count(class['category'], project)
if class['class'] == 'FA' then
Line 79 ⟶ 78:
)
end
sum_classes = sum_classes + class['count']
elseif args[i] then
end
class['count'] = tonumber(args[i])
else
for i, class in pairs(classes) do
elseif if args[i] then
class['count'] = tonumber(args[i])
sum_classes = sum_classes + class['count']
end
end
sum_classes = sum_classes + class['count']
end