fix wifi location on javascript-side

This commit is contained in:
Laura Klünder 2016-12-28 11:25:51 +01:00
parent 9f75554503
commit 606ed3cc22
2 changed files with 1 additions and 2 deletions

View file

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