Commit 558d07db authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

update: update keep_doc field

parent 7bed1f31
Pipeline #1894 failed with stages
in 1 minute and 4 seconds
......@@ -3,6 +3,7 @@ import logging
from django.conf import settings
from django.core.management import call_command
from django.core.management.base import BaseCommand
from django.db.models import F, Q
from rainboard.models import Branch, Project, Repo, Robotpkg
from rainboard.utils import update_robotpkg
......@@ -37,4 +38,9 @@ class Command(BaseCommand):
logger.info(f' {project}')
project.update()
Branch.objects.filter(
Q(name__endswith='master') | Q(name__endswith='devel'),
repo__namespace=F('project__main_namespace'), repo__forge__source=SOURCES.gitlab
).update(keep_doc=True)
call_command('delete_perso')
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