Module:Article history/config: Difference between revisions

Content deleted Content added
make the Deletion to Quality Award testing more sophisticated
use resultId instead of getResult for action object tests
Line 1,979:
ret[#ret + 1] = Category.new('Wikipedia articles rejected for Four awards')
elseif articleHistoryObj:getStatusId() == 'FA' then
local isPossibleFour, isDYK = false, false
for i, obj in ipairs(articleHistoryObj:getCollapsibleNoticeObjects()) do
if obj.id == 'DYK' then
Line 1,988:
if isDYK then
for i, obj in ipairs(articleHistoryObj:getActionObjects()) do
if obj.id == 'GAN' and obj:getResult().resultId == 'successfullisted' then
ret[#ret + 1] = Category.new('Possible Wikipedia four award articles')
isPossibleFour = true
break
end
end
end
if isPossibleFour then
ret[#ret + 1] = Category.new('Possible Wikipedia four award articles')
end
end
Line 2,020 ⟶ 2,017:
for i = iAfd + 1, #actionObjects do
local obj = actionObjects[i]
if obj.id == id and obj:getResult().resultId == result then
return true
end