diff --git a/unisportomat/quiz/serializers.py b/unisportomat/quiz/serializers.py index 0b8605d3b5dbfb7b0e3bc9b07e012340f0d13e35..3a9cdd80c3fa9ca2a1874339fd34122f1ec0ed52 100644 --- a/unisportomat/quiz/serializers.py +++ b/unisportomat/quiz/serializers.py @@ -156,7 +156,7 @@ class IncompleteSportSerializer(serializers.BaseSerializer): } for crit in sport.criteria_ratings.iterator(): - + # Asking this way to save an indentation and for readability. Would also work when asking for = -1 and handling the append then. if sport.get_rating(crit) != -1: continue diff --git a/unisportomat/quiz/views.py b/unisportomat/quiz/views.py index a860a2184f976660ec174ad501242bf1f6c24ba5..e27fd48ca67c264a4f64a4c8f2d3a6e7af335988 100644 --- a/unisportomat/quiz/views.py +++ b/unisportomat/quiz/views.py @@ -160,7 +160,6 @@ class SmallSportListView(viewsets.ViewSet): """ PATCH for api/admin/sport/<id>/ Fills in the given Values into the Sport specified in the URL - TODO: Id From URL or JSON? """ # Get Data from Serializer