figures/views.py
def completed(self, request):
        """Experimental endpoint to return completed LCGM records

        This is the same as `/figures/api/enrollment-metrics/?only_completed=True

        Return matching LearnerCourseGradeMetric rows that have completed
        enrollments
        """
        site = django.contrib.sites.shortcuts.get_current_site(request)
        qs = self.model.objects.completed_for_site(site=site)
        page = self.paginate_queryset(qs)
        if page is not None:
            serializer = self.get_serializer(page, many=True)
            return self.get_paginated_response(serializer.data)
        serializer = self.get_serializer(qs, many=True)
        return Response(serializer.data)
Experimental endpoint to return completed LCGM records

        This is the same as `/figures/api/enrollment-metrics/?only_completed=True

        Return matching LearnerCourseGradeMetric rows that have completed
        enrollments
        
Experimental endpoint to return completed LCGM records
This is the same as `/figures/api/enrollment-metrics/?only_completed=True

Return matching LearnerCourseGradeMetric rows that have completed
enrollments
Experimental endpoint to return completed LCGM records This is the same as ` / figures / api / enrollment - metrics / ?only_completed = True Return matching LearnerCourseGradeMetric rows that have completed enrollments
def completed(self, request):
        site = django.contrib.sites.shortcuts.get_current_site(request)
        qs = self.model.objects.completed_for_site(site=site)
        page = self.paginate_queryset(qs)
        if page is not None:
            serializer = self.get_serializer(page, many=True)
            return self.get_paginated_response(serializer.data)
        serializer = self.get_serializer(qs, many=True)
        return Response(serializer.data)
def completed ( self , request ) : site = django . contrib . sites . shortcuts . get_current_site ( request ) qs = self . model . objects . completed_for_site ( site = site ) page = self . paginate_queryset ( qs ) if page is not None : serializer = self . get_serializer ( page , many = True ) return self . get_paginated_response ( serializer . data ) serializer = self . get_serializer ( qs , many = True ) return Response ( serializer . data )
Experimental endpoint to return completed LCGM records
This is the same as `/figures/api/enrollment-metrics/?only_completed=True
Experimental endpoint to return completed LCGM records This is the same as ` / figures / api / enrollment - metrics / ?only_completed = True
"""Experimental endpoint to return completed LCGM records

        This is the same as `/figures/api/enrollment-metrics/?only_completed=True

        Return matching LearnerCourseGradeMetric rows that have completed
        enrollments
        """
self
request