janw/tapedrive

View on GitHub
podcasts/api/views.py

Summary

Maintainability
A
2 hrs
Test Coverage
F
0%

Showing 2 of 2 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

@action(detail=True, renderer_classes=[renderers.StaticHTMLRenderer])
def summary(self, request, *args, **kwargs):
podcast = self.get_object()
return Response(podcast.summary_p)
Severity: Major
Found in podcasts/api/views.py and 1 other location - About 1 hr to fix
podcasts/api/views.py on lines 69..72

Similar blocks of code found in 2 locations. Consider refactoring.
Open

@action(detail=True, renderer_classes=[renderers.StaticHTMLRenderer])
def shownotes(self, request, *args, **kwargs):
episode = self.get_object()
return Response(episode.shownotes)
Severity: Major
Found in podcasts/api/views.py and 1 other location - About 1 hr to fix
podcasts/api/views.py on lines 28..31

There are no issues that match your filters.

Category
Status