# -*- coding: utf-8 -*-

"""A command to delete expired rows."""

import datetime

from django.core.management.base import BaseCommand

from ui.models import Commute


class Command(BaseCommand):
    """A command to delete expired rows."""

    help = 'Deletes expired rows'

    def handle(self, *args, **options):
        """Handle the command."""
        now = datetime.datetime.now()
        Commute.objects.filter(time__lt=now).delete()

8cebaa08e72a0277c123ee8dd867b175c81f2921
<mask token>


class Command(BaseCommand):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Command(BaseCommand):
    <mask token>
    help = 'Deletes expired rows'

    def handle(self, *args, **options):
        """Handle the command."""
        now = datetime.datetime.now()
        Commute.objects.filter(time__lt=now).delete()

<mask token>


class Command(BaseCommand):
    """A command to delete expired rows."""
    help = 'Deletes expired rows'

    def handle(self, *args, **options):
        """Handle the command."""
        now = datetime.datetime.now()
        Commute.objects.filter(time__lt=now).delete()

<mask token>
import datetime
from django.core.management.base import BaseCommand
from ui.models import Commute


class Command(BaseCommand):
    """A command to delete expired rows."""
    help = 'Deletes expired rows'

    def handle(self, *args, **options):
        """Handle the command."""
        now = datetime.datetime.now()
        Commute.objects.filter(time__lt=now).delete()

# -*- coding: utf-8 -*-

"""A command to delete expired rows."""

import datetime

from django.core.management.base import BaseCommand

from ui.models import Commute


class Command(BaseCommand):
    """A command to delete expired rows."""

    help = 'Deletes expired rows'

    def handle(self, *args, **options):
        """Handle the command."""
        now = datetime.datetime.now()
        Commute.objects.filter(time__lt=now).delete()
