Skip to content

Commit

Permalink
Merge pull request #79 from ts-tech-repo/gradetranscript
Browse files Browse the repository at this point in the history
Gradetranscript
  • Loading branch information
Chandana3008 authored Sep 14, 2024
2 parents 2b910d4 + e74e025 commit 0f829c7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/djangoapps/student/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
re_path(r'^notebook_submissions', views.extras_notebook_submissions, name = 'extras_notebook_submissions'),

re_path(r'^extras/reset_password_link', views.extras_reset_password_link, name = "extras_reset_password_link"),

re_path(r'^extras/emiitk_get_grades', views.extras_emiitk_get_grades, name = "extras_emiitk_get_grades"),
re_path(r'^extras/start_mettl_test', views.extras_start_mettl_test, name = "extras_start_mettl_test"),
re_path(r'^extras/get_mettl_report', views.extras_get_mettl_report, name = "extras_get_mettl_report"),

Expand Down
12 changes: 11 additions & 1 deletion common/djangoapps/student/views/management.py
Original file line number Diff line number Diff line change
Expand Up @@ -1490,4 +1490,14 @@ def extras_userdetails(request):
user_details = {"username": u.username,"name" : u.first_name + " " + u.last_name,"mail" : u.email, "uid" : uid}
return JsonResponse(user_details)
except User.DoesNotExist:
return render(request, 'blank.html', {"message": "User Does Not Exist"})
return render(request, 'blank.html', {"message": "User Does Not Exist"})


#KC
@login_required
@csrf_exempt
def extras_emiitk_get_grades(request):
url = "https://emasters.iitk.ac.in/report/grades"
response = requests.request("POST", url = url, data = {"email" : request.user.email, "roll_no" : request.user.last_name, "name" : request.user.first_name})
context = response.text
return HttpResponse(context)

0 comments on commit 0f829c7

Please sign in to comment.