From 6ece244974d07ee11508086df53dd6924e604fb0 Mon Sep 17 00:00:00 2001 From: jelanmathewjames Date: Thu, 20 Jun 2024 21:06:20 +0530 Subject: [PATCH 1/2] refactor: Add "Community" as an allowed organization type in Leaderboard APIView --- 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 ae06c45f..bd42a036 100644 --- a/api/launchpad/launchpad_views.py +++ b/api/launchpad/launchpad_views.py @@ -25,7 +25,7 @@ def get(self, request): ).values('user').annotate( total_karma=Sum('karma') ).values('total_karma') - allowed_org_types = ["College", "School", "Company"] + allowed_org_types = ["College", "School", "Company", "Community"] intro_task_completed_users = KarmaActivityLog.objects.filter( task__event='launchpad', From 74c0f327e1137a69879d4dbf1f22dbb1a1251b03 Mon Sep 17 00:00:00 2001 From: jelanmathewjames Date: Thu, 20 Jun 2024 21:07:45 +0530 Subject: [PATCH 2/2] refactor: Update launchpad serializer --- api/launchpad/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/launchpad/serializers.py b/api/launchpad/serializers.py index b387a487..702eea3a 100644 --- a/api/launchpad/serializers.py +++ b/api/launchpad/serializers.py @@ -32,7 +32,7 @@ def get_rank(self, obj): ).values('user').annotate( total_karma=Sum('karma') ).values('total_karma') - allowed_org_types = ["College", "School", "Company"] + allowed_org_types = ["College", "School", "Company", "Community"] intro_task_completed_users = KarmaActivityLog.objects.filter( task__event='launchpad',