mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
Only turn real-time feeds into lazy feeds if there is a track record of push notifications.
This commit is contained in:
parent
5683616511
commit
53d9464137
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue