Self hosted FLOSS fitness/workout, nutrition and weight tracker
Remove unused endpoint
Roland Geiderf2219f9e4e8f
diff --git a/wger/manager/api/views.py b/wger/manager/api/views.pyindex b36d56c6a..2caec1019 100644--- a/wger/manager/api/views.py+++ b/wger/manager/api/views.py@@ -332,16 +332,6 @@ class SetViewSet(WgerOwnerObjectModelViewSet):out = SettingSerializer(self.get_object().compute_settings, many=True).datareturn Response({'results': out})- @action(detail=True)- def smart_text(self, request, pk):- """Returns the smart text representation for the reps"""-- try:- exercise = get_object_or_404(Exercise, pk=int(self.request.GET.get('exercise')))- except ValueError:- return HttpResponseNotFound()- return Response({'results': self.get_object().reps_smart_text(exercise=exercise)})-class SettingViewSet(WgerOwnerObjectModelViewSet):"""