git add wifilocate debug

This commit is contained in:
Laura Klünder 2016-12-28 10:57:05 +01:00
parent 0c4cbe2e11
commit 43bd7e8773

View file

@ -207,6 +207,7 @@ class LocationViewSet(ViewSet):
@list_route(methods=['POST'])
def wifilocate(self, request):
stations = json.loads(request.POST['stations'])[:200]
print(stations)
if not stations:
return Response({})