mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Simplifying the shit out of feed fetch histories.
This commit is contained in:
parent
6e93972ada
commit
a13b6bc084
2 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@ class MStatistics(mongo.Document):
|
|||
if not last_day:
|
||||
last_day = datetime.datetime.now() - datetime.timedelta(hours=24)
|
||||
|
||||
feeds_fetched = MFeedFetchHistory.count()
|
||||
feeds_fetched = MFeedFetchHistory.objects.count()
|
||||
cls.objects(key='feeds_fetched').update_one(upsert=True, key='feeds_fetched', value=feeds_fetched)
|
||||
|
||||
MFeedFetchHistory.objects(fetch_date__lt=last_day).delete()
|
||||
|
|
2
fabfile.py
vendored
2
fabfile.py
vendored
|
@ -33,7 +33,7 @@ env.roledefs ={
|
|||
'local': ['localhost'],
|
||||
'app': ['app01.newsblur.com', 'app02.newsblur.com'],
|
||||
'web': ['www.newsblur.com', 'app02.newsblur.com'],
|
||||
'db': ['db01.newsblur.com', 'db02.newsblur.com'],
|
||||
'db': ['db01.newsblur.com', 'db02.newsblur.com', 'db03.newsblur.com'],
|
||||
'task': ['task01.newsblur.com', 'task02.newsblur.com', 'task03.newsblur.com'],
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue