Skip to content

Commit

Permalink
django_website: handle feeds without GUIDs better.
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/djangoproject.com@4839 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
jacob committed Mar 28, 2007
1 parent 85e8ae7 commit 6d90531
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions django_website/apps/aggregator/bin/update_feeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ def update_feeds():
guid = entry.get("id", entry.link).encode(parsed_feed.encoding, "xmlcharrefreplace")
link = entry.link.encode(parsed_feed.encoding, "xmlcharrefreplace")

if not guid:
guid = link

if hasattr(entry, "summary"):
content = entry.summary
elif hasattr(entry, "content"):
Expand Down

0 comments on commit 6d90531

Please sign in to comment.