From 662d2fd122ebf3b63ecf8cb2390c535edbc39d07 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Sat, 10 Mar 2012 16:11:52 +0100 Subject: Fixed some things to work live --- aggregator/management/commands/loadfeeds.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'aggregator/management/commands/loadfeeds.py') diff --git a/aggregator/management/commands/loadfeeds.py b/aggregator/management/commands/loadfeeds.py index 8d9e83c..aff1799 100644 --- a/aggregator/management/commands/loadfeeds.py +++ b/aggregator/management/commands/loadfeeds.py @@ -32,10 +32,15 @@ class Command(BaseCommand): updated=updated, feed=feed) + if 'content' in entry.keys(): + content = entry.content[0]['value'] + else: + content = entry.summary + if feed.with_markdown: - post.body = markdown.markdown(entry.summary) + post.body = markdown.markdown(content) else: - post.body = entry.summary + post.body = content post.save() -- cgit v1.2.3-54-g00ecf