Skip to content

Commit

Permalink
Analytics API: check if absolute_uri isn't present (#10227)
Browse files Browse the repository at this point in the history
  • Loading branch information
stsewd committed Apr 10, 2023
1 parent 6edc096 commit 51ac47b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions readthedocs/analytics/proxied_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,12 @@ def get(self, request, *args, **kwargs):
project = self._get_project()
version = self._get_version()
absolute_uri = self.request.GET.get('absolute_uri')
self.increase_page_view_count(
project=project,
version=version,
absolute_uri=absolute_uri,
)
if absolute_uri:
self.increase_page_view_count(
project=project,
version=version,
absolute_uri=absolute_uri,
)
return Response(status=200)

# pylint: disable=no-self-use
Expand Down

0 comments on commit 51ac47b

Please sign in to comment.