aboutsummaryrefslogtreecommitdiffstats
path: root/aggregator/management/commands
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-03-10 16:11:52 +0100
committerGravatar ryuslash2012-03-10 16:12:17 +0100
commit662d2fd122ebf3b63ecf8cb2390c535edbc39d07 (patch)
tree229136debc2615113f657de8e7c7526f1b52d541 /aggregator/management/commands
parent20ade8543a5d30adf1d0afbdfa5381ab8734ed7c (diff)
downloadryuslash.org-662d2fd122ebf3b63ecf8cb2390c535edbc39d07.tar.gz
ryuslash.org-662d2fd122ebf3b63ecf8cb2390c535edbc39d07.zip
Fixed some things to work live
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 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()