Files
mayan-edms/mayan/apps/statistics/management/commands/purgestatistics.py
2015-09-14 21:57:55 -04:00

13 lines
314 B
Python

from __future__ import unicode_literals
from django.core.management.base import BaseCommand
from ...classes import Statistic
class Command(BaseCommand):
help = 'Remove obsolete statistics scheduled and results from the database'
def handle(self, *args, **options):
Statistic.purge_schedules()