wifilocate still needs better debugging
This commit is contained in:
parent
43bd7e8773
commit
9f75554503
1 changed files with 1 additions and 1 deletions
|
@ -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({})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue