Commit 3b171d7d authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

update: look only for active targets

parent c6340e33
Pipeline #9021 passed with stage
in 1 minute and 18 seconds
......@@ -57,5 +57,5 @@ class Command(BaseCommand):
Image.objects.filter(robotpkg__project__archived=True).delete()
log(f'\nLook for missing images\n')
for img in Image.objects.filter(created__lt=timezone.now() - timedelta(days=7)):
for img in Image.objects.filter(created__lt=timezone.now() - timedelta(days=7), target__active=True):
log(f' {img}')
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