From 0b93b1e19e1b6d20acfdc53f741c630674b054fe Mon Sep 17 00:00:00 2001 From: jelanmathewjames Date: Fri, 5 Jul 2024 16:10:17 +0530 Subject: [PATCH] feat: Update allowed organization types in launchpad leaderboard --- api/launchpad/launchpad_views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/launchpad/launchpad_views.py b/api/launchpad/launchpad_views.py index 18320195..fd7833b3 100644 --- a/api/launchpad/launchpad_views.py +++ b/api/launchpad/launchpad_views.py @@ -44,7 +44,7 @@ def get(self, request): ) ).filter( Q(user_organization_link_user__id__in=UserOrganizationLink.objects.filter( - org__org_type__in=allowed_org_types + org__org_type__in=["College", "School", "Company", "Community"] ).values("id")) | Q(user_organization_link_user__id__isnull=True) ).annotate( karma=Subquery(total_karma_subquery, output_field=IntegerField()),