mirror of
https://github.com/viq/NewsBlur.git
synced 2025-08-05 16:49:45 +00:00
Attempting a fix to broken de-duping when a story guid that a story is going to be merged into already exists further out.
This commit is contained in:
parent
5ec4e627e0
commit
2fa204b840
1 changed files with 4 additions and 1 deletions
|
@ -1311,7 +1311,10 @@ class Feed(models.Model):
|
|||
continue
|
||||
elif story.get('guid') == existing_story.story_guid:
|
||||
story_in_system = existing_story
|
||||
|
||||
elif (existing_story.story_guid in new_story_guids and
|
||||
story.get('guid') != existing_story.story_guid):
|
||||
# Story coming up later
|
||||
continue
|
||||
# Title distance + content distance, checking if story changed
|
||||
story_title_difference = abs(levenshtein_distance(story.get('title'),
|
||||
existing_story.story_title))
|
||||
|
|
Loading…
Add table
Reference in a new issue