Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused nid #177

Merged
merged 1 commit into from
Jan 2, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions lib/jekyll-import/importers/drupal7.rb
Original file line number Diff line number Diff line change
@@ -3,8 +3,7 @@ module Importers
class Drupal7 < Importer
# Reads a MySQL database via Sequel and creates a post file for each story
# and blog node.
QUERY = "SELECT n.nid, \
n.title, \
QUERY = "SELECT n.title, \
fdb.body_value, \
n.created, \
n.status \
@@ -59,7 +58,6 @@ def self.process(options)

db[QUERY].each do |post|
# Get required fields and construct Jekyll compatible name
node_id = post[:nid]
title = post[:title]
content = post[:body_value]
created = post[:created]