Skip to content

Commit

Permalink
Fixing wonky unread counts.
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelclay committed Oct 30, 2012
1 parent 6908ca5 commit 691598a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/reader/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def calculate_feed_scores(self, silent=False, stories=None):
for story in stories:
if story['story_date'] < date_delta:
continue
if story.get('story_guid', None) not in read_stories_ids:
if story['id'] not in read_stories_ids:
unread_stories.append(story)
if story['story_date'] < oldest_unread_story_date:
oldest_unread_story_date = story['story_date']
Expand Down
2 changes: 1 addition & 1 deletion utils/mongo_raw_log_middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def _mongodb_decode_wire_protocol(message):
try:
if message[zidx:]:
msg = bson.decode_all(message[zidx:])
except InvalidBSON:
except:
msg = 'invalid bson'
return { 'op': op, 'collection': collection_name,
'msg_id': msg_id, 'skip': skip, 'limit': limit,
Expand Down

0 comments on commit 691598a

Please sign in to comment.