mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Another bug found by @kyleniemeyer's story. a - b was supposed to be b - a.
This commit is contained in:
parent
e19c0851fd
commit
3889517bfd
1 changed files with 1 additions and 1 deletions
|
@ -1638,7 +1638,7 @@ class MStory(mongo.Document):
|
|||
stories = list(cls.objects(story_hash__in=story_hashes))
|
||||
if len(stories) < count:
|
||||
hashes_found = [s.story_hash for s in stories]
|
||||
remaining_hashes = list(set(hashes_found) - set(story_hashes))
|
||||
remaining_hashes = list(set(story_hashes) - set(hashes_found))
|
||||
story_feed_ids = [h.split(':')[0] for h in remaining_hashes]
|
||||
shared_stories = list(MSharedStory.objects(story_feed_id__in=story_feed_ids,
|
||||
story_hash__in=remaining_hashes))
|
||||
|
|
Loading…
Add table
Reference in a new issue