mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Drastically simplifying SQL command to find existing stories. Removed all found GUIDs and am just using the start/end dates in the feed.
This commit is contained in:
parent
03fc6aa2ad
commit
d6dfc25e4e
1 changed files with 2 additions and 2 deletions
|
@ -176,8 +176,8 @@ class ProcessFeed:
|
|||
end_date = story.get('published')
|
||||
story_guids.append(story.get('guid') or story.get('link'))
|
||||
existing_stories = Story.objects.filter(
|
||||
(Q(story_date__gte=start_date) & Q(story_date__lte=end_date))
|
||||
| (Q(story_guid__in=story_guids)),
|
||||
story_date__gte=start_date,
|
||||
story_date__lte=end_date,
|
||||
story_feed=self.feed
|
||||
).order_by('-story_date')
|
||||
ret_values = self.feed.add_update_stories(self.fpf.entries, existing_stories)
|
||||
|
|
Loading…
Add table
Reference in a new issue