From 32c1c784358700a599e53cd86fb2c6f318ad0217 Mon Sep 17 00:00:00 2001 From: hukl Date: Sun, 1 Feb 2009 00:10:20 +0100 Subject: added updates.tbz to db/ which includes all old / current updates on www.ccc.de in utf-8. Also added the commands necessary to import those xml into the local db to the README in /doc --- lib/update_importer.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lib/update_importer.rb') diff --git a/lib/update_importer.rb b/lib/update_importer.rb index 4d4e1d5..af7064c 100644 --- a/lib/update_importer.rb +++ b/lib/update_importer.rb @@ -80,6 +80,7 @@ class UpdateImporter if node.pages.empty? node.pages.create!( :title => xhtml.elements['title'].get_text.to_s, + :abstract => xhtml.elements['abstract'].get_text.to_s, :body => body, :published_at => date ) @@ -132,8 +133,4 @@ class UpdateImporter element end -end - -i = UpdateImporter.new ('/Users/hukl/Desktop/updates') -i.import_xml - +end \ No newline at end of file -- cgit v1.3