fixed the missing exposure annotation in UpperLimitView

This commit is contained in:
2025-09-26 19:00:59 +03:00
parent fd66d31658
commit ce29819806

View File

@@ -457,7 +457,7 @@ class UpperLimitView(APIView):
map_pixels_qs = ( map_pixels_qs = (
Pixel.objects.filter(hpid__in=map_pixel_list, survey__in=survey_numbers) Pixel.objects.filter(hpid__in=map_pixel_list, survey__in=survey_numbers)
.values("hpid") .values("hpid")
.annotate(counts=Sum("counts")) .annotate(counts=Sum("counts"), exposure=Sum("exposure"))
.order_by("hpid") .order_by("hpid")
) )