last_notification_date = feed_notification.last_notification_date
classifiers = feed_notification.classifiers()
if not classifiers:
continue
for story in stories:
if story["story_date"] < last_notification_date and not force:
continue
if story["story_date"] > feed_notification.last_notification_date:
After Change
stories = Feed.format_stories(mstories)
for feed_notification in notifications:
sent_count = 0
last_notification_date = feed_notification.last_notification_date
classifiers = feed_notification.classifiers()
if classifiers == None:
logging.debug("Has no usersubs")
continue
for story in stories:
if sent_count >= 3:
logging.debug("Sent too many, ignoring...")
continue
if story["story_date"] < last_notification_date and not force:
logging.debug("Story date older than last notification date: %s < %s" % (story["story_date"], last_notification_date))
continue