From a65899312b74fdd25c97b97615f8690518dcc48b Mon Sep 17 00:00:00 2001 From: David Jones Date: Mon, 29 Apr 2024 17:04:05 -1000 Subject: [PATCH] one more cutout problem --- app/host/host_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/host/host_utils.py b/app/host/host_utils.py index ef74f086..8338bef0 100644 --- a/app/host/host_utils.py +++ b/app/host/host_utils.py @@ -401,7 +401,7 @@ def select_cutout_aperture(cutouts, choice=0): def select_aperture(transient): - cutouts = Cutout.objects.filter(transient=transient) + cutouts = Cutout.objects.filter(transient=transient).filter(~Q(fits="")) if len(cutouts): cutout_for_aperture = select_cutout_aperture(cutouts) if len(cutouts) and len(cutout_for_aperture):