Since processing can take a long time with slow blogs, store the
date before that happens.
This will prevent from conflicting with the web UI and overwriting
the settings from that one.
entries += 1
titles.append(entry.title)
total_entries += 1
- # Save an update to when the feed was last scanned
- feed.save()
if entries > 0 and feed.approved:
# Email a notification that they were picked up
d = datetime.datetime.now()
self.feed.lastget = d
+ self.feed.save()
else:
# We didn't get a Last-Modified time, so set it to the entry date
# for the latest entry in this feed.
if self.newest_entry_date:
self.feed.lastget = self.newest_entry_date
+ self.feed.save()
def matches_filter(self, entry):
# For now, we only match against self.feed.authorfilter. In the future,