From 58aaa45250f89d02f599aa9d1f1b7922e08d0db1 Mon Sep 17 00:00:00 2001 From: Adnan Kattekaden Date: Thu, 16 Nov 2023 12:13:09 +0530 Subject: [PATCH] top ig users --- api/common/common_views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/common/common_views.py b/api/common/common_views.py index 59875075..82765621 100644 --- a/api/common/common_views.py +++ b/api/common/common_views.py @@ -348,6 +348,6 @@ def get(self, request): user_karma_by_ig = KarmaActivityLog.objects.filter( task__ig__name=ig_name, appraiser_approved=True ).values(muid=F('user__muid'), first_name=F('user__first_name'), last_name=F('user__last_name')).annotate( - total_karma=Sum('karma') + ig_karma=Sum('karma') ).order_by('-total_karma')[:100] return CustomResponse(response=user_karma_by_ig).get_success_response()