def handle(self, *args, **options):
        if options["debug"]:
            import logging
            l = logging.getLogger("django.db.backends")
            l.setLevel(logging.DEBUG)
            l.addHandler(logging.StreamHandler())
        self.verbose = options["verbose"]

        log_maximum_age = int(parameters.get_admin("LOG_MAXIMUM_AGE"))
        self.__vprint("Deleting logs older than %d days..." % log_maximum_age)
        limit = datetime.timedelta(log_maximum_age) - timezone.now()
        Log.objects.filter(date_created__lt=limit).delete()
        self.__vprint("Done.")
dataset/ETHPy150Open tonioo/modoboa/modoboa/core/management/commands/cleanlogs.py/Command.handle/swapped operands of `-`