diff --git a/api/launchpad/launchpad_views.py b/api/launchpad/launchpad_views.py index a9d755ef..232b3ba9 100644 --- a/api/launchpad/launchpad_views.py +++ b/api/launchpad/launchpad_views.py @@ -42,10 +42,6 @@ def get(self, request): "user_organization_link_user", queryset=UserOrganizationLink.objects.filter(org__org_type__in=allowed_org_types), ) - ).filter( - user_organization_link_user__id__in=UserOrganizationLink.objects.filter( - org__org_type__in=allowed_org_types - ).values("id") ).annotate( karma=Subquery(total_karma_subquery, output_field=IntegerField()), org=F("user_organization_link_user__org__title"), @@ -171,7 +167,7 @@ def get(self, request): class CollegeData(APIView): def get(self, request): allowed_levels = LaunchPadLevels.get_all_values() - + org = Organization.objects.filter( org_type="College", ).prefetch_related( @@ -204,7 +200,7 @@ def get(self, request): filter=Q(user_organization_link_org__user__user_role_link_user__role__title=LaunchPadLevels.LEVEL_4.value) ) ).order_by("-total_users") - + paginated_queryset = CommonUtils.get_paginated_queryset( org, request,