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:
Samuel Clay 2014-03-13 16:13:53 -07:00
parent 5ec4e627e0
commit 2fa204b840

View file

@ -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))