From 41ee3ef53f85f0529b2dd6e44f0b4fbd0f3777a2 Mon Sep 17 00:00:00 2001 From: hukl Date: Tue, 31 Mar 2009 23:46:11 +0200 Subject: don't even look --- lib/chaos_importer.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/chaos_importer.rb b/lib/chaos_importer.rb index 657f1f0..f8e98f5 100644 --- a/lib/chaos_importer.rb +++ b/lib/chaos_importer.rb @@ -59,6 +59,7 @@ class ChaosImporter end self.each do |update| + author = find_or_create_author( update ) node = find_or_create_node( update ) html = convert_to_html( update.xml ) @@ -68,7 +69,8 @@ class ChaosImporter add_event_to_node node, update.xml if page.tag_list.include?("event") page.user = author page.save - # puts node.unique_name + + puts node.unique_name end Node.all.each {|node| node.publish_draft!} @@ -115,8 +117,6 @@ class ChaosImporter @years[year].move_to_child_of @updates end - puts update.unique_name - unless node = Node.find_by_unique_name(update.unique_name) node = Node.create :slug => update.slug node.move_to_child_of @years[year] -- cgit v1.3