From 3e0639e6f76969ccada060a8aa53052ad9981a68 Mon Sep 17 00:00:00 2001 From: Sean Morley Date: Tue, 25 Feb 2025 10:55:08 -0500 Subject: [PATCH] fix: Update URL path regex in StatsViewSet for username counts action --- backend/server/adventures/views/stats_view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/server/adventures/views/stats_view.py b/backend/server/adventures/views/stats_view.py index 37d9f07..07bc7ff 100644 --- a/backend/server/adventures/views/stats_view.py +++ b/backend/server/adventures/views/stats_view.py @@ -14,7 +14,7 @@ class StatsViewSet(viewsets.ViewSet): """ A simple ViewSet for listing the stats of a user. """ - @action(detail=False, methods=['get'], url_path='counts/(?P[^/.]+)') + @action(detail=False, methods=['get'], url_path='counts/(?P[^/]+)') def counts(self, request, username): if request.user.username == username: user = get_object_or_404(User, username=username)