Commit 6ec0c530 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

delete personal repositories

parent 8c45d5a5
......@@ -5,9 +5,15 @@ set -ex
source .env
./manage.py migrate
./manage.py populate
./manage.py delete_perso
./manage.py fetch
./manage.py delete_perso
./manage.py robotpkg
./manage.py delete_perso
./manage.py cmake
./manage.py delete_perso
./manage.py travis
./manage.py delete_perso
./manage.py update
./manage.py delete_perso
./manage.py runserver
import logging
from django.core.management.base import BaseCommand
import requests
from rainboard.models import Project
LICENSES = 'https://raw.githubusercontent.com/spdx/license-list-data/master/json/licenses.json'
logger = logging.getLogger('rainboard.management.populate')
class Command(BaseCommand):
help = 'Delete personnal projects'
def handle(self, *args, **options):
logger.info(f'removing unwanted projects:')
logger.info(str(Project.objects.filter(main_namespace__group=False).delete()))
......@@ -36,6 +36,3 @@ class Command(BaseCommand):
for repo in Repo.objects.all():
logger.info(f' updating {repo}')
repo.api_update()
logger.info(f'removing unwanted projects:')
logger.info(str(Project.objects.filter(main_namespace__group=False).delete()))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment