Permalink
Browse files

Adds categories to export

  • Loading branch information...
1 parent 69f8f82 commit dd626849ee36b6f24ee31584cb3ab18dc091309e @pkordel pkordel committed May 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 script/litpuls.rb
View
@@ -66,10 +66,10 @@ def self.extract_entry(entry)
def export_csv(data)
CSV.open(CSV_FILE_PATH, 'wb') do |csv|
- csv << %w[published title text tnr isbn link]
+ csv << %w[published title text tnr isbn link categories]
data.each do |i|
row = []
- row << i.published_at << i.title << i.text << i.tnr << i.isbn << i.book_link
+ row << i.published_at << i.title << i.text << i.tnr << i.isbn << i.book_link << i.categories
csv << row
end
end

0 comments on commit dd62684

Please sign in to comment.