Fixed the category name

This commit is contained in:
Alexander Yakovlev 2017-01-19 17:26:11 +07:00
parent 96ee214be3
commit fd021b16ac

View file

@ -8,7 +8,7 @@ config["sites"].each do |site|
for page in list do
page_text = wiki.get_text(page['title']).body
changed = false
if not page_text.include?("[[Category:#{config["category"]}]]") then
if not page_text.include?("[[Category:#{site["category"]}]]") then
next
end
if not page_text.include?("<vote type=1 />") then