Content deleted Content added
poke |
use the api that I'm supposed to |
||
Line 29:
local function category_count(category, project, frame)
return
category .. project .. 'articles',
end
Line 45 ⟶ 44:
function p._main(args, frame)
-- is there a way that I can avoid passing a reference to the parent frame?
-- I need to be able to access extensionTag
-- these are defined on frame
Line 75 ⟶ 74:
for i, class in pairs(classes) do
if project then
class['count'] = category_count(class['category'], project
if class['class'] == 'FA' then
class['count'] = class['count'] + category_count(
project_classes[1]['category'],
project
)
end
Line 93 ⟶ 91:
divisor = sum_classes + category_count(
project_classes[2]['category'],
project
)
else
|