diff options
Diffstat (limited to 'aggregator/management/commands/loadfeeds.py')
-rw-r--r-- | aggregator/management/commands/loadfeeds.py | 9 |
1 files changed, 7 insertions, 2 deletions
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() |