From 53d9464137ec73a1c3d4674b993df64b4ba4a40a Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Wed, 14 Aug 2013 18:01:12 -0700 Subject: [PATCH] Only turn real-time feeds into lazy feeds if there is a track record of push notifications. --- apps/rss_feeds/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/rss_feeds/models.py b/apps/rss_feeds/models.py index 0d63377aa..7fe6199fb 100644 --- a/apps/rss_feeds/models.py +++ b/apps/rss_feeds/models.py @@ -1385,7 +1385,9 @@ class Feed(models.Model): # subscriber_bonus = int(subscriber_bonus) if self.is_push: - total = total * 12 + fetch_history = MFetchHistory.feed(self.pk) + if len(fetch_history['push_history']): + total = total * 12 # 3 day max if total > 60*24*3: