Django

Code

Changeset 431

Show
Ignore:
Timestamp:
08/08/05 12:36:16 (3 years ago)
Author:
jacob
Message:

Small tweak to the way aggregator handles modification dates; updated entries no longer get bumped to the top (it was causing too many issues)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • djangoproject.com/django_website/apps/aggregator/bin/update_feeds.py

    r427 r431  
    3939             
    4040            try: 
    41                 feeditem = feed.get_feeditem(guid__exact=guid) 
     41                feed.get_feeditem(guid__exact=guid) 
    4242            except feeditems.FeedItemDoesNotExist: 
    43                 feeditem = feed.add_feeditem(title=title, 
    44                                              link=link, 
    45                                              summary=content, 
    46                                              guid=guid, 
    47                                              date_modified=date_modified) 
    48             else: 
    49                 feeditem.date_modified = date_modified 
    50                 feeditem.save() 
    51  
     43                feed.add_feeditem(title=title, link=link, summary=content, guid=guid, date_modified=date_modified) 
     44                 
    5245if __name__ == '__main__': 
    5346    parser = optparse.OptionParser()