Module:Video game reviews/sandbox: Difference between revisions

Content deleted Content added
Jackmcbarn (talk | contribs)
reduce scope of halfargs
Jackmcbarn (talk | contribs)
simplify non-platform reviewers case, and remove j
Line 492:
local halfkeysrev, halfkeysagg = {}, {}
local flags = {}
local j = 1
 
local sortedArgKeys = {}
for k in pairs(args) do
Line 516 ⟶ 515:
if not flags[halfargs[1]] then
flags[halfargs[1]] = true
table.insert(halfkeysrev[j] =, halfargs[1])
j = j + 1
end
end
Line 524 ⟶ 522:
end
else
for i=1_,#argKey in ipairs(sortedArgKeys) do
if string.find(tostring(sortedArgKeys[i]argKey), '_') == nil then
for k=1_,v #in ipairs(reviewer) do
if reviewer[k]v[2] == sortedArgKeys[i]argKey then
table.insert(halfkeysrev[j], = sortedArgKeys[i]argKey)
j = j + 1
end
end