rename cid scores to something more appropriate

This commit is contained in:
Ross
2026-01-19 10:28:08 +00:00
parent 1c27d48a36
commit 9c16f93820
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ urlpatterns = [
#path("", TemplateView.as_view(template_name="index.html"), name="home"),
path("", views.index, name="home"),
path("cid/results/<int:cid>/", views.cid_results, name="cid_results"),
path("cid/<int:cid>/<str:passcode>", views.cid_scores, name="cid_scores"),
path("cid/<int:cid>/<str:passcode>", views.cid_user_overview, name="cid_scores"),
path("cid/<int:cid>/", views.cid_scores_admin, name="cid_scores_admin"),
path("user/scores", views.user_scores, name="user_scores"),
path("user/scores/<int:user_id>", views.user_scores_admin, name="user_scores_admin"),
+3 -3
View File
@@ -194,7 +194,7 @@ def cid_scores_admin(request, cid):
if not cid_user:
raise Http404("CID not found")
return cid_scores(request, cid_user.cid, cid_user.passcode)
return cid_user_overview(request, cid_user.cid, cid_user.passcode)
@login_required
@@ -356,7 +356,7 @@ def user_marking_partial(request, exam_type: str):
return render(request, "generic/partials/user_marking_exam_list.html", {"exams_data": exams_data, "exam_type": exam_type})
def cid_scores(request, cid, passcode):
def cid_user_overview(request, cid, passcode):
# exam = get_object_or_404(Exam, pk=pk)
cid_user = CidUser.objects.filter(cid=cid).first()
@@ -387,7 +387,7 @@ def cid_scores(request, cid, passcode):
return render(
request,
"cid_scores.html",
"cid_user_overview.html",
{
# "physics_exams": physics_exams,
# "anatomy_exams": anatomy_exams,