Exemplo n.º 1
0
 def handle(self, *labels, **options):
     backup_count = settings.BACKUP_COUNT
     if labels or len(labels) > 1:
         backup_count = labels[0]
     
     manager = BackupManager()
     manager.remove_old_files(backup_count)
Exemplo n.º 2
0
    def handle(self, *labels, **options):
        backup_count = settings.BACKUP_COUNT
        if labels or len(labels) > 1:
            backup_count = labels[0]

        manager = BackupManager()
        manager.remove_old_files(backup_count)