update
This commit is contained in:
@ -92,7 +92,7 @@ def LocationInBound(request):
|
||||
else:
|
||||
locs = Location.objects.filter(geom__within=pl)
|
||||
#res = Location.objects.filter(geom__within=pl)
|
||||
if len(res) > 50:
|
||||
if len(locs) > 50:
|
||||
return JsonResponse({"too_many_points": True}, safe=False, status=500)
|
||||
else:
|
||||
serializer = LocationSerializer(locs, many=True)
|
||||
|
||||
Reference in New Issue
Block a user