wifilocate still needs better debugging

This commit is contained in:
Laura Klünder 2016-12-28 11:10:34 +01:00
parent 43bd7e8773
commit 9f75554503

View file

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