From 5f392cf4da4e092a2297967118458c0fa479e413 Mon Sep 17 00:00:00 2001 From: VishalMinj Date: Mon, 21 Oct 2024 02:25:51 +0530 Subject: [PATCH] flake test update --- user_profile/views.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/user_profile/views.py b/user_profile/views.py index 527561b..c2bde0b 100644 --- a/user_profile/views.py +++ b/user_profile/views.py @@ -58,16 +58,13 @@ def profile(request, username): pending_pr_requests_for_mentor = pr_requests_for_mentor.filter(state=3).order_by("submitted_at") pr_requests_for_mentor = chain(pending_pr_requests_for_mentor, accepted_pr_requests_for_mentor, rejected_pr_requests_for_mentor) - easyProblems=PullRequest.objects.filter(contributor=user,issue__level=1,state=1).count() - mediumProblems=PullRequest.objects.filter(contributor=user,issue__level=2,state=1).count() - hardProblems=PullRequest.objects.filter(contributor=user,issue__level=3,state=1).count() - veasyProblems=PullRequest.objects.filter(contributor=user,issue__level=4,state=1).count() + easyProblems = PullRequest.objects.filter(contributor=user, issue__level=1, state=1).count() + mediumProblems = PullRequest.objects.filter(contributor=user, issue__level=2, state=1).count() + hardProblems = PullRequest.objects.filter(contributor=user, issue__level=3, state=1).count() + veasyProblems = PullRequest.objects.filter(contributor=user, issue__level=4, state=1).count() totalProblemsSolved = PullRequest.objects.filter(contributor=user, state=1).count() - - pr_form = PRSubmissionForm() judge_form = PRJudgeForm() - context = { "student_years": UserProfile.YEARS, "student_courses": UserProfile.COURSES,