mirror of
https://github.com/viq/NewsBlur.git
synced 2025-04-13 09:38:09 +00:00
17 lines
464 B
Python
17 lines
464 B
Python
from newsblur.celeryapp import app
|
|
from apps.statistics.models import MStatistics
|
|
from apps.statistics.models import MFeedback
|
|
from utils import log as logging
|
|
|
|
|
|
|
|
@app.task(name='collect-stats')
|
|
def CollectStats():
|
|
logging.debug(" ---> ~FBCollecting stats...")
|
|
MStatistics.collect_statistics()
|
|
|
|
|
|
@app.task(name='collect-feedback')
|
|
def CollectFeedback():
|
|
logging.debug(" ---> ~FBCollecting feedback...")
|
|
MFeedback.collect_feedback()
|