Skip to content

Commit

Permalink
Merge pull request #1345 from adnankattekaden/dev
Browse files Browse the repository at this point in the history
kkem minor fix
  • Loading branch information
adnankattekaden authored Oct 17, 2023
2 parents 89dab25 + 22ebdc7 commit 49c1417
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/common/common_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def get(self, request):
learning_circle_count = LearningCircle.objects.all().count()
total_no_enrollment = UserCircleLink.objects.filter(accepted=True).count()
circle_count_by_ig = LearningCircle.objects.all().values(ig_name=F('ig__name')).annotate(
total_circles=Count('id'), total_users=Count('user', distinct=True))
total_circles=Count('id'))

unique_user_count = UserCircleLink.objects.filter(accepted=True).values('user').distinct().count()
return CustomResponse(response={'lc_count': learning_circle_count, 'total_enrollment': total_no_enrollment,
'circle_count_by_ig': circle_count_by_ig,
Expand Down

0 comments on commit 49c1417

Please sign in to comment.