Skip to content

Commit

Permalink
position stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
station committed Jul 26, 2016
1 parent 15e2866 commit 5a58f78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Position(View):
def post(self, request, *args, **kwargs):
profile = Profile.objects.get(id=kwargs['account_id'])
url = 'http://'+profile.connection.hostname+':'+str(profile.connection.port)+'/position'
if ('latitude' in request.POST) and ('longitude' in request.POST)
if ('latitude' in request.POST) and ('longitude' in request.POST):
lat = request.POST.get('latitude')
lng = request.POST.get('longitude')
data = {'lat': lat,'lng': lng, 'alt': 0}
Expand Down

0 comments on commit 5a58f78

Please sign in to comment.