summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/chaos_importer.rb6
1 files 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
59 end 59 end
60 60
61 self.each do |update| 61 self.each do |update|
62
62 author = find_or_create_author( update ) 63 author = find_or_create_author( update )
63 node = find_or_create_node( update ) 64 node = find_or_create_node( update )
64 html = convert_to_html( update.xml ) 65 html = convert_to_html( update.xml )
@@ -68,7 +69,8 @@ class ChaosImporter
68 add_event_to_node node, update.xml if page.tag_list.include?("event") 69 add_event_to_node node, update.xml if page.tag_list.include?("event")
69 page.user = author 70 page.user = author
70 page.save 71 page.save
71 # puts node.unique_name 72
73 puts node.unique_name
72 end 74 end
73 75
74 Node.all.each {|node| node.publish_draft!} 76 Node.all.each {|node| node.publish_draft!}
@@ -115,8 +117,6 @@ class ChaosImporter
115 @years[year].move_to_child_of @updates 117 @years[year].move_to_child_of @updates
116 end 118 end
117 119
118 puts update.unique_name
119
120 unless node = Node.find_by_unique_name(update.unique_name) 120 unless node = Node.find_by_unique_name(update.unique_name)
121 node = Node.create :slug => update.slug 121 node = Node.create :slug => update.slug
122 node.move_to_child_of @years[year] 122 node.move_to_child_of @years[year]