From 314ca000a480c717f95eb710062ff4e29b76c793 Mon Sep 17 00:00:00 2001 From: Vishal Minj <119677246+VishalMinj@users.noreply.github.com> Date: Mon, 21 Oct 2024 16:42:21 +0530 Subject: [PATCH] Update views.py: Flake test --- user_profile/views.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/user_profile/views.py b/user_profile/views.py index 9c51565..d3e0811 100644 --- a/user_profile/views.py +++ b/user_profile/views.py @@ -197,8 +197,10 @@ def edit_profile(request): @login_required 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 ] - contributors=zip(contributors,issues_resolved) + issues_resolved = [ + PullRequest.objects.filter(contributor=contributor.user, state=1).count() for contributor in contributors + ] + contributors = zip(contributors, issues_resolved) context = { 'contributors': list(contributors), }