I don't know how manual unreads older than the unread cutoff were ever counted before removing this date check.

This commit is contained in:
Samuel Clay 2022-07-07 13:44:19 -04:00
parent 3a90f39d6e
commit e4f2528b08

View file

@ -817,8 +817,8 @@ class UserSubscription(models.Model):
oldest_unread_story_date = now
if self.user.profile.last_seen_on < self.user.profile.unread_cutoff and not force:
# if not silent:
# logging.info(' ---> [%s] SKIPPING Computing scores: %s (1 week+)' % (self.user, self.feed))
if not silent and settings.DEBUG:
logging.info(' ---> [%s] SKIPPING Computing scores: %s (1 week+)' % (self.user, self.feed))
return self
ong = self.unread_count_negative
ont = self.unread_count_neutral
@ -866,8 +866,8 @@ class UserSubscription(models.Model):
unread_stories = []
for story in stories:
if story['story_date'] < date_delta:
continue
# if story['story_date'] < date_delta:
# continue
if story['story_hash'] in unread_story_hashes:
unread_stories.append(story)
if story['story_date'] < oldest_unread_story_date: