NewsBlur/apps/statistics/management/commands/collect_stats.py

10 lines
294 B
Python
Raw Normal View History

2011-04-15 11:34:41 -04:00
from optparse import make_option
from django.core.management.base import BaseCommand
from apps.statistics.models import MStatistics
class Command(BaseCommand):
option_list = BaseCommand.option_list + (
)
def handle(self, *args, **options):
MStatistics.collect_statistics()