aboutsummaryrefslogtreecommitdiffstats
path: root/aggregator/management/commands
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-03-11 01:46:40 +0100
committerGravatar Tom Willemsen2012-03-11 01:46:40 +0100
commit9431aad2b493f4dd94dfde41a931c076b69f0d09 (patch)
tree287a3237a29b8c69dd8c4465d5f36201ba30a05d /aggregator/management/commands
parent01b1f444ebfe2ee18bbeb53cab3528e75bba920b (diff)
parent662d2fd122ebf3b63ecf8cb2390c535edbc39d07 (diff)
downloadryuslash.org-9431aad2b493f4dd94dfde41a931c076b69f0d09.tar.gz
ryuslash.org-9431aad2b493f4dd94dfde41a931c076b69f0d09.zip
Merge remote-tracking branch 'refs/remotes/github/master'
Diffstat (limited to 'aggregator/management/commands')
-rw-r--r--aggregator/management/commands/loadfeeds.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/aggregator/management/commands/loadfeeds.py b/aggregator/management/commands/loadfeeds.py
index 203cfb3..04316b3 100644
--- a/aggregator/management/commands/loadfeeds.py
+++ b/aggregator/management/commands/loadfeeds.py
@@ -34,10 +34,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()