Commit 9966ce6e authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

Robotpkg.valid_images: add extended_target…

parent 37cf7fd6
Pipeline #14246 passed with stage
in 3 minutes and 22 seconds
......@@ -881,7 +881,8 @@ class Robotpkg(NamedModel):
base_images = Image.objects.filter(robotpkg__project=self.project, target__main=True)
base_image = base_images.order_by('-py3', 'debug').first()
images = self.image_set.filter(created__isnull=False, target__active=True).order_by('target__name')
images = self.image_set.filter(Q(target__active=True) | Q(target__robotpkg=self),
return (image for image in images if is_valid(base_image, image))
def without_py(self):
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