Skip to content

Commit

Permalink
Update views.py: Flake test
Browse files Browse the repository at this point in the history
  • Loading branch information
VishalMinj authored Oct 21, 2024
1 parent ce47868 commit 314ca00
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions user_profile/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
Expand Down

0 comments on commit 314ca00

Please sign in to comment.