update points limit

This commit is contained in:
Mohamed Nouffer
2023-01-22 19:23:06 +05:30
parent 9c10abb8e3
commit 94943a7a34

View File

@ -164,7 +164,7 @@ def LocationInBound(request):
locs = Location.objects.filter(geom__within=pl, event_name__isnull=True, group__contains=grp, location_name__contains='観光')
else:
locs = Location.objects.filter(geom__within=pl, event_name__isnull=True, location_name__contains='観光')
if len(locs) > 50:
if len(locs) > 120:
return JsonResponse({"too_many_points": True}, safe=False, status=500)
else:
serializer = LocationSerializer(locs, many=True)