only set position in locate() if location is not None
This commit is contained in:
parent
4fcca5bb08
commit
7ebc6a8605
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ class RoutingViewSet(ViewSet):
|
||||||
'errors': (_('Invalid scan data.'),),
|
'errors': (_('Invalid scan data.'),),
|
||||||
}, status=400)
|
}, status=400)
|
||||||
|
|
||||||
if 'set_position' in data:
|
if 'set_position' in data and location:
|
||||||
set_position = data['set_position']
|
set_position = data['set_position']
|
||||||
if not set_position.startswith('p:'):
|
if not set_position.startswith('p:'):
|
||||||
return Response({
|
return Response({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue