TabbycatDebate/tabbycat

View on GitHub
tabbycat/actionlog/management/commands/printactionlog.py

Summary

Maintainability
A
0 mins
Test Coverage
from django.core.management.base import BaseCommand

from ...models import ActionLogEntry


class Command(BaseCommand):

    help = "Prints every entry in the action log (for all tournaments)"

    def handle(self, **options):
        for al in ActionLogEntry.objects.order_by('-timestamp'):
            self.stdout.write(repr(al))