From 91ed36474734c416146b4690419c8e5bc9ce0e2c Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Fri, 1 Dec 2023 00:17:10 +0100 Subject: [PATCH] Return 200 if resource already exists (no scrobble created) --- vrobbler/apps/scrobbles/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vrobbler/apps/scrobbles/views.py b/vrobbler/apps/scrobbles/views.py index 8e50b88..9e19602 100644 --- a/vrobbler/apps/scrobbles/views.py +++ b/vrobbler/apps/scrobbles/views.py @@ -374,7 +374,7 @@ def gps_webhook(request): scrobble = gpslogger_scrobble_location(data_dict, request.user.id) if not scrobble: - return Response({}, status=status.HTTP_400_BAD_REQUEST) + return Response({}, status=status.HTTP_200_OK) return Response({"scrobble_id": scrobble.id}, status=status.HTTP_200_OK)