Module:Video game reviews/sandbox: Difference between revisions

Content deleted Content added
Jackmcbarn (talk | contribs)
move another if test out of a for loop
Jackmcbarn (talk | contribs)
lose the nitem variable
Line 490:
 
function p._reviewbox(args)
local halfkeysrev, halfkeysagg = {}, {}
local flags = {}
local nitem = {}
local halfargs = {}
local j = 1
Line 518 ⟶ 517:
if not flags[halfargs[1]] then
flags[halfargs[1]] = true
nitemhalfkeysrev[j] = halfargs[1]
j = j + 1
end
Line 530 ⟶ 529:
for k=1, #reviewer do
if reviewer[k][2] == sortedArgKeys[i] then
nitemhalfkeysrev[j] = sortedArgKeys[i]
j = j + 1
end
Line 537 ⟶ 536:
end
end
halfkeysrev = nitem
 
local flags = {}
local nitem = {}
local halfargs = {}
local j = 1
Line 552 ⟶ 549:
if not flags[halfargs[1]] then
flags[halfargs[1]] = true
nitemhalfkeysagg[j] = halfargs[1]
j = j + 1
end
Line 564 ⟶ 561:
for k=1, #aggregator do
if aggregator[k][2] == sortedArgKeys[i] then
nitemhalfkeysagg[j] = sortedArgKeys[i]
j = j + 1
end
Line 571 ⟶ 568:
end
end
halfkeysagg = nitem
return renderMainTable(halfkeysrev, halfkeysagg, awardKeys, platforms, custome_agg, custome_rev, args)
end