Update TODOs and fix tests

This commit is contained in:
2023-01-24 16:44:11 -05:00
parent 8ac938bd12
commit 2e7470688d
4 changed files with 66 additions and 16 deletions

View File

@ -131,8 +131,8 @@ def scrobble_endpoint(request):
@csrf_exempt
@api_view(['POST'])
@permission_classes([IsAuthenticated])
@api_view(['POST'])
def jellyfin_websocket(request):
data_dict = request.data
@ -157,8 +157,8 @@ def jellyfin_websocket(request):
@csrf_exempt
@api_view(['POST'])
@permission_classes([IsAuthenticated])
@api_view(['POST'])
def mopidy_websocket(request):
try:
data_dict = json.loads(request.data)
@ -183,8 +183,8 @@ def mopidy_websocket(request):
@csrf_exempt
@api_view(['GET'])
@permission_classes([IsAuthenticated])
@api_view(['GET'])
def scrobble_finish(request, uuid):
user = request.user
if not user.is_authenticated:
@ -201,8 +201,8 @@ def scrobble_finish(request, uuid):
@csrf_exempt
@api_view(['GET'])
@permission_classes([IsAuthenticated])
@api_view(['GET'])
def scrobble_cancel(request, uuid):
user = request.user
if not user.is_authenticated: