add locate stats
This commit is contained in:
parent
0c23e59342
commit
dec781d04f
1 changed files with 1 additions and 0 deletions
|
@ -96,6 +96,7 @@ class RoutingViewSet(ViewSet):
|
|||
def locate(self, request, *args, **kwargs):
|
||||
try:
|
||||
location = Locator.load().locate(request.data, permissions=AccessPermission.get_for_request(request))
|
||||
increment_cache_key('apistats__locate__%s' % location.pk)
|
||||
except ValidationError:
|
||||
return Response({
|
||||
'errors': (_('Invalid scan data.'),),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue