Another bug found by @kyleniemeyer's story. a - b was supposed to be b - a.

This commit is contained in:
Samuel Clay 2013-04-30 16:59:02 -07:00
parent e19c0851fd
commit 3889517bfd

View file

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