update for bound loads location
This commit is contained in:
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user