Skip to content

Commit

Permalink
top ig users
Browse files Browse the repository at this point in the history
  • Loading branch information
adnankattekaden committed Nov 16, 2023
1 parent fcbc1ac commit 58aaa45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/common/common_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 58aaa45

Please sign in to comment.