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