Skip to content

Commit

Permalink
fix: serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperhodge committed Jan 17, 2025
1 parent 971f2ac commit 2867f8b
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,7 @@ def get(self, request: Request, course_id: str):
**({'LinkCheckOutput': broken_links_dto} if broken_links_dto else {}),
**({'LinkCheckError': error} if error else {})
}

print('data', data)
serializer = LinkCheckSerializer(data=data)
serializer.is_valid(raise_exception=False)
serializer = LinkCheckSerializer(data)

return Response(serializer.data)

Expand Down

0 comments on commit 2867f8b

Please sign in to comment.