def handle(self, *args, **options):
        quiet = options.get('quiet', False)
        codes = self.get_codes()
        if not quiet:
            if codes:
                self.stdout.write('Will now delete codes: %s \n' % codes)
            else:
                self.stdout.write('No Object codes to delete. \n')
        revisions = self.get_revisions()
        if not quiet:
            if codes:
                self.stdout.write("Will now delete additional doc's revisions in docs: %s \n"
                                  % [d[0] for d in revisions])
            else:
                self.stdout.write('No additional revision files to delete. \n')
        if codes or revisions:
            processor = core.document_processor.DocumentProcessor()
            user = User.objects.filter(is_superuser=True)[0]
            for code in codes:
                processor.delete(code, {'user': user})
                if not processor.errors:
                    if not quiet:
                        self.stdout.write(code % 'Permanently deleted object with code: %s')
                else:
                    if not quiet:
                        self.stdout.write(processor.errors)
                    raise(Exception, processor.errors)
            for rev in revisions:
                processor.delete(rev[0], {'user': user, 'delete_revision': rev[1]})
dataset/ETHPy150Open adlibre/Adlibre-DMS/adlibre_dms/apps/core/management/commands/purge.py/Command.handle/swapped operands of `%`