From 7b5bb895c433d85d170d57d77882ba253050788e Mon Sep 17 00:00:00 2001 From: neingeist Date: Fri, 13 Jul 2007 09:24:23 +0000 Subject: [PATCH] minor frickelei --- camp/neinomat-workshops | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/camp/neinomat-workshops b/camp/neinomat-workshops index df78a72..a3963bc 100755 --- a/camp/neinomat-workshops +++ b/camp/neinomat-workshops @@ -31,7 +31,7 @@ def parse_template(title, template) info << fields end else - $stderr.print "Template #{template} not found in #{title}!" + $stderr.print "Template #{template} not found in #{title}!\n" end info @@ -40,12 +40,15 @@ end list = "" @wiki.category("Workshop").articles.each do |article| - if article != "Template:Workshop" + if article != "Template:Workshop" && article != "List of workshops" && article != "ExampleVille" + workshops = parse_template(article, "Workshop") workshops.each do |workshop| list += "* [[#{article}|#{workshop["what"]}]] " - list += "Day " + workshop["day"] + "/" + workshop["start"] + if workshop["day"] != "" + list += "Day " + workshop["day"] + "/" + workshop["start"] + end list += "\n" end end @@ -57,4 +60,4 @@ puts list a = @wiki.article("List of workshops") a.text = list a.submit("wiki ex machina") - +a.protect("Automatically generated article")