Only turn real-time feeds into lazy feeds if there is a track record of push notifications.

This commit is contained in:
Samuel Clay 2013-08-14 18:01:12 -07:00
parent 5683616511
commit 53d9464137

View file

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