Fixed the category name
This commit is contained in:
parent
96ee214be3
commit
fd021b16ac
2
start.rb
2
start.rb
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue