mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Temporarily killing all feed fetch histories grater than 5 back. This will screw up the home page statistics, but it's costing too much.
This commit is contained in:
parent
5a4640afa4
commit
4429fef6c8
1 changed files with 1 additions and 1 deletions
|
@ -251,7 +251,7 @@ class Feed(models.Model):
|
|||
fetch_date=datetime.datetime.utcnow()).save()
|
||||
day_ago = datetime.datetime.now() - datetime.timedelta(hours=24)
|
||||
new_fetch_histories = MFeedFetchHistory.objects(feed_id=self.pk, fetch_date__gte=day_ago)
|
||||
if new_fetch_histories.count() < 5:
|
||||
if new_fetch_histories.count() < 5 or True:
|
||||
old_fetch_histories = MFeedFetchHistory.objects(feed_id=self.pk)[5:]
|
||||
else:
|
||||
old_fetch_histories = MFeedFetchHistory.objects(feed_id=self.pk, fetch_date__lte=day_ago)
|
||||
|
|
Loading…
Add table
Reference in a new issue