diff --git a/rog/views.py b/rog/views.py index 9e86cb5..586d27d 100644 --- a/rog/views.py +++ b/rog/views.py @@ -112,7 +112,10 @@ def LocationInBound(request): else: locs = Location.objects.filter(geom__within=pl, category=cat, event_name__isnull=True, cp=0) else: - locs = Location.objects.filter(geom__within=pl, event_name__isnull=True) + if is_rog: + locs = Location.objects.filter(geom__within=pl, event_name__isnull=True, cp__gt=0) + else: + locs = Location.objects.filter(geom__within=pl, event_name__isnull=True, cp=0) if len(locs) > 50: return JsonResponse({"too_many_points": True}, safe=False, status=500) else: