mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Handling dupe stories
This commit is contained in:
parent
7e6aad7b6d
commit
6a53d127d9
1 changed files with 9 additions and 5 deletions
|
@ -1497,11 +1497,15 @@ class Feed(models.Model):
|
|||
}
|
||||
authors = feed['authors'][story['story_authors']]
|
||||
authors['count'] += 1
|
||||
authors['stories'].append({
|
||||
'title': story['story_title'],
|
||||
'url': story['story_permalink'],
|
||||
'date': story['story_date'],
|
||||
})
|
||||
for seen_story in authors['stories']:
|
||||
if seen_story['url'] == story['story_permalink']:
|
||||
break
|
||||
else:
|
||||
authors['stories'].append({
|
||||
'title': story['story_title'],
|
||||
'url': story['story_permalink'],
|
||||
'date': story['story_date'],
|
||||
})
|
||||
for tag in story['story_tags']:
|
||||
if tag not in authors['tags']:
|
||||
authors['tags'][tag] = 0
|
||||
|
|
Loading…
Add table
Reference in a new issue