diff options
author | Tom Willemsen | 2012-03-10 16:11:52 +0100 |
---|---|---|
committer | ryuslash | 2012-03-10 16:12:17 +0100 |
commit | 662d2fd122ebf3b63ecf8cb2390c535edbc39d07 (patch) | |
tree | 229136debc2615113f657de8e7c7526f1b52d541 /aggregator/management/commands/loadfeeds.py | |
parent | 20ade8543a5d30adf1d0afbdfa5381ab8734ed7c (diff) | |
download | ryuslash.org-662d2fd122ebf3b63ecf8cb2390c535edbc39d07.tar.gz ryuslash.org-662d2fd122ebf3b63ecf8cb2390c535edbc39d07.zip |
Fixed some things to work live
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() |