Skip to content

Commit

Permalink
Revert "Merge pull request #179 from VishalMinj/main"
Browse files Browse the repository at this point in the history
This reverts commit 081b238, reversing
changes made to 883e928.
  • Loading branch information
meisabhishekpatel committed Oct 20, 2024
1 parent 8913145 commit d47262d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 45 deletions.
34 changes: 0 additions & 34 deletions user_profile/templates/user_profile/issue_card.html

This file was deleted.

1 change: 0 additions & 1 deletion user_profile/templates/user_profile/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

{% if user.is_authenticated %}
{% include "user_profile/profile-card.html" %}
{% include "user_profile/issue_card.html" %}

{% comment %}
In Django templates you can use the "get_FOO_display()" method, that will return the readable alias
Expand Down
11 changes: 1 addition & 10 deletions user_profile/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,6 @@ def profile(request, username):
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()
totalProblemsSolved = PullRequest.objects.filter(contributor=user, state=1).count()

pr_form = PRSubmissionForm()
judge_form = PRJudgeForm()

Expand All @@ -79,11 +74,7 @@ def profile(request, username):
"assignment_requests_for_mentor": assignment_requests_for_mentor,
'pr_form': pr_form,
"judge_form": judge_form,
"native_profile": native_profile,
"easyProblems": easyProblems,
"mediumProblems": mediumProblems,
"hardProblems": hardProblems,
"totalProblemsSolved": totalProblemsSolved,
"native_profile": native_profile
}
return render(request, 'user_profile/profile.html', context=context)
else:
Expand Down

0 comments on commit d47262d

Please sign in to comment.