Files
mayan-edms/mayan/apps/mayan_statistics/management/commands/purgestatistics.py
T
2017-08-29 02:01:41 -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()