fixed the missing exposure
annotation in UpperLimitView
This commit is contained in:
2
views.py
2
views.py
@@ -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")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user