mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Inverting the count for fetched feeds.
This commit is contained in:
parent
96f6a3d2c7
commit
80a666ff53
1 changed files with 2 additions and 2 deletions
|
@ -53,9 +53,9 @@ class MStatistics(mongo.Document):
|
|||
last_day = datetime.datetime.now() - datetime.timedelta(hours=24)
|
||||
last_month = datetime.datetime.now() - datetime.timedelta(days=30)
|
||||
|
||||
feeds_fetched = MFeedFetchHistory.objects.filter(fetch_date__lt=last_day).count()
|
||||
feeds_fetched = MFeedFetchHistory.objects.filter(fetch_date__gte=last_day).count()
|
||||
cls.objects(key='feeds_fetched').update_one(upsert=True, key='feeds_fetched', value=feeds_fetched)
|
||||
pages_fetched = MPageFetchHistory.objects.filter(fetch_date__lt=last_day).count()
|
||||
pages_fetched = MPageFetchHistory.objects.filter(fetch_date__gte=last_day).count()
|
||||
cls.objects(key='pages_fetched').update_one(upsert=True, key='pages_fetched', value=pages_fetched)
|
||||
|
||||
from utils.feed_functions import timelimit, TimeoutError
|
||||
|
|
Loading…
Add table
Reference in a new issue