Skip to content

armgit / wger

Public Imported from GitHub
0

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.py
index 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).data
return 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):
"""