Files
mayan-edms/mayan/apps/mayan_statistics/tasks.py
T
2017-08-29 02:01:41 -04:00

19 lines
319 B
Python

from __future__ import unicode_literals
import logging
from mayan.celery import app
from .classes import Statistic
logger = logging.getLogger(__name__)
@app.task(ignore_result=True)
def task_execute_statistic(slug):
logger.info('Executing')
Statistic.get(slug=slug).execute()
logger.info('Finshed')