Skip to content

Commit

Permalink
flake test update
Browse files Browse the repository at this point in the history
  • Loading branch information
VishalMinj committed Oct 20, 2024
1 parent 1fc632f commit 5f392cf
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions user_profile/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5f392cf

Please sign in to comment.