Browse Source

Return 200 if resource already exists (no scrobble created)

Colin Powell 1 year ago
parent
commit
91ed364747
1 changed files with 1 additions and 1 deletions
  1. 1 1
      vrobbler/apps/scrobbles/views.py

+ 1 - 1
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)