From dc58a17e647bb1fb8e8c6cde00f3f42f0ad1363c Mon Sep 17 00:00:00 2001 From: Russ Webber Date: Sun, 4 Aug 2013 17:21:35 +0800 Subject: [PATCH] fix missing 'kind' arg in importer fixes #983 --- pelican/tools/pelican_import.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pelican/tools/pelican_import.py b/pelican/tools/pelican_import.py index 46582937..46410c13 100755 --- a/pelican/tools/pelican_import.py +++ b/pelican/tools/pelican_import.py @@ -400,8 +400,9 @@ def tumblr2fields(api_key, blogname): content = '

%s: %s

\n%s' % (post.get('asking_name'), post.get('asking_url'), post.get('question'), post.get('answer')) content = content.rstrip() + '\n' - - yield (title, content, slug, date, post.get('blog_name'), [type], tags, format) + kind = 'article' + yield (title, content, slug, date, post.get('blog_name'), [type], + tags, kind, format) offset += len(posts) posts = get_tumblr_posts(api_key, blogname, offset)