From e7153ef019e474b10a3ca09c4178b7c3f8960507 Mon Sep 17 00:00:00 2001 From: Vishal Minj <119677246+VishalMinj@users.noreply.github.com> Date: Mon, 21 Oct 2024 16:46:15 +0530 Subject: [PATCH] Update views.py --- user_profile/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user_profile/views.py b/user_profile/views.py index d3e0811..5be4157 100644 --- a/user_profile/views.py +++ b/user_profile/views.py @@ -198,7 +198,7 @@ def edit_profile(request): def rankings(request): contributors = UserProfile.objects.filter(role=UserProfile.STUDENT).order_by('-total_points') issues_resolved = [ - PullRequest.objects.filter(contributor=contributor.user, state=1).count() for contributor in contributors + PullRequest.objects.filter(contributor=contributor.user, state=1).count() for contributor in contributors ] contributors = zip(contributors, issues_resolved) context = {