From 9f7555450360a4b831f0661652a4fee8ea9e9847 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Wed, 28 Dec 2016 11:10:34 +0100 Subject: [PATCH] wifilocate still needs better debugging --- src/c3nav/mapdata/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c3nav/mapdata/api.py b/src/c3nav/mapdata/api.py index 8554430d..3156d7f0 100644 --- a/src/c3nav/mapdata/api.py +++ b/src/c3nav/mapdata/api.py @@ -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({})