From f859373ea0f2e2ab22fad324a73a90f23ac6489d Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 8 Sep 2021 08:52:06 +0100 Subject: [PATCH 01/54] . --- longs/templates/longs/mark.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/longs/templates/longs/mark.html b/longs/templates/longs/mark.html index 041aaff3..aec6511b 100644 --- a/longs/templates/longs/mark.html +++ b/longs/templates/longs/mark.html @@ -1,7 +1,7 @@ {% extends 'longs/exams.html' %} {% block content %} -View +View Edit Admin Edit From d3071557dc65dc933c0574cad0118f464bf0edab Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 8 Sep 2021 08:52:58 +0100 Subject: [PATCH 02/54] . --- longs/templates/longs/mark.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/longs/templates/longs/mark.html b/longs/templates/longs/mark.html index aec6511b..9193fe91 100644 --- a/longs/templates/longs/mark.html +++ b/longs/templates/longs/mark.html @@ -1,7 +1,8 @@ {% extends 'longs/exams.html' %} {% block content %} -View +View Edit Admin Edit From 7eeee6068cf8f98fb0b1966064f877d52220661c Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 8 Sep 2021 08:56:46 +0100 Subject: [PATCH 03/54] . --- longs/tables.py | 1 + 1 file changed, 1 insertion(+) diff --git a/longs/tables.py b/longs/tables.py index 5351ba23..c9743272 100755 --- a/longs/tables.py +++ b/longs/tables.py @@ -128,6 +128,7 @@ class UserAnswerTable(tables.Table): fields = ( "cid", "question", + "score", #"normal", #"answer", #"answer_compare", From c1ca746fef7e0fb4ed5db71cf36e0472c6eb7fc2 Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 8 Sep 2021 10:09:12 +0100 Subject: [PATCH 04/54] . --- anatomy/templates/anatomy/mark.html | 6 +++--- rapids/templates/rapids/mark.html | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/anatomy/templates/anatomy/mark.html b/anatomy/templates/anatomy/mark.html index 93d41d9a..5a9a415c 100644 --- a/anatomy/templates/anatomy/mark.html +++ b/anatomy/templates/anatomy/mark.html @@ -20,13 +20,13 @@ Marked:
    {% for answer in correct_answers %} -
  • {{ answer }}
  • +
  • {{ answer }}
  • {% endfor %} {% for answer in half_mark_answers %} -
  • {{ answer }}
  • +
  • {{ answer }}
  • {% endfor %} {% for answer in incorrect_answers %} -
  • {{ answer }}
  • +
  • {{ answer }}
  • {% endfor %}
Key: 2 Marks, 1 diff --git a/rapids/templates/rapids/mark.html b/rapids/templates/rapids/mark.html index e1d3d011..00676944 100644 --- a/rapids/templates/rapids/mark.html +++ b/rapids/templates/rapids/mark.html @@ -33,17 +33,17 @@ Region: {{ question.get_regions }}, Abnormalities: {{ question.get_abnormalities
    {% for answer in correct_answers %}
  • -
    {{ answer }}
    +
    {{ answer }}
  • {% endfor %} {% for answer in half_mark_answers %}
  • -
    {{ answer }}
    +
    {{ answer }}
  • {% endfor %} {% for answer in incorrect_answers %}
  • -
    {{ answer }}
    +
    {{ answer }}
  • {% endfor %}
From 38bb9bf9a01a62476c3f674570b6dcd51ed1cfc3 Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 8 Sep 2021 10:42:35 +0100 Subject: [PATCH 05/54] . --- longs/templates/longs/ciduseranswer_detail.html | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/longs/templates/longs/ciduseranswer_detail.html b/longs/templates/longs/ciduseranswer_detail.html index 508aedd9..442b6ab9 100644 --- a/longs/templates/longs/ciduseranswer_detail.html +++ b/longs/templates/longs/ciduseranswer_detail.html @@ -1,5 +1,4 @@ - -{% extends 'rapids/base.html' %} +{% extends 'longs/base.html' %} {% block content %} CID: {{ciduseranswer.cid}} @@ -8,11 +7,11 @@ CID: {{ciduseranswer.cid}} {{ciduseranswer.question}}

Answers

-{{ciduseranswer.model_observations}}
-{{ciduseranswer.model_interpretation}}
-{{ciduseranswer.model_principle_diagnosis}}
-{{ciduseranswer.model_differential_diagnosis}}
-{{ciduseranswer.model_management}}
+{{ciduseranswer.answer_observations}}
+{{ciduseranswer.answer_interpretation}}
+{{ciduseranswer.answer_principle_diagnosis}}
+{{ciduseranswer.answer_differential_diagnosis}}
+{{ciduseranswer.answer_management}}
From 8ac75f4ce767dd998a25908841f2935d09fcfbde Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 8 Sep 2021 10:52:22 +0100 Subject: [PATCH 06/54] . --- longs/templates/longs/ciduseranswer_detail.html | 15 ++++++++++----- longs/templates/longs/exam_scores.html | 2 +- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/longs/templates/longs/ciduseranswer_detail.html b/longs/templates/longs/ciduseranswer_detail.html index 442b6ab9..d990f695 100644 --- a/longs/templates/longs/ciduseranswer_detail.html +++ b/longs/templates/longs/ciduseranswer_detail.html @@ -7,11 +7,16 @@ CID: {{ciduseranswer.cid}} {{ciduseranswer.question}}

Answers

-{{ciduseranswer.answer_observations}}
-{{ciduseranswer.answer_interpretation}}
-{{ciduseranswer.answer_principle_diagnosis}}
-{{ciduseranswer.answer_differential_diagnosis}}
-{{ciduseranswer.answer_management}}
+

Observation

+
{{ciduseranswer.answer_observations}}

+

Interpretation

+
{{ciduseranswer.answer_interpretation}}

+

Principle Diagnosis

+
{{ciduseranswer.answer_principle_diagnosis}}

+

Differential Diagnosis

+
{{ciduseranswer.answer_differential_diagnosis}}

+

Managment

+
{{ciduseranswer.answer_management}}

diff --git a/longs/templates/longs/exam_scores.html b/longs/templates/longs/exam_scores.html index 56b275a1..2e96de9d 100644 --- a/longs/templates/longs/exam_scores.html +++ b/longs/templates/longs/exam_scores.html @@ -51,7 +51,7 @@ {% for question in questions %} - Question {{forloop.counter}} + Question {{forloop.counter}} {% for ans, score in by_question|get_item:question %} {{score}} {% endfor %} From 54d61e4f255ffbe703ec5b2002ccf75c8b600246 Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 8 Sep 2021 10:59:09 +0100 Subject: [PATCH 07/54] . --- longs/templates/longs/exam_scores.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/longs/templates/longs/exam_scores.html b/longs/templates/longs/exam_scores.html index 2e96de9d..3e7d2470 100644 --- a/longs/templates/longs/exam_scores.html +++ b/longs/templates/longs/exam_scores.html @@ -44,7 +44,7 @@ Candidate {% for cid in cids %} - {{cid}} + {{cid}} {% endfor %} From a3cd5541b05a17b8ea2ce83e9fb340c391247d06 Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 8 Sep 2021 10:59:46 +0100 Subject: [PATCH 08/54] . --- longs/templates/longs/exam_scores.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/longs/templates/longs/exam_scores.html b/longs/templates/longs/exam_scores.html index 3e7d2470..6d5d0147 100644 --- a/longs/templates/longs/exam_scores.html +++ b/longs/templates/longs/exam_scores.html @@ -44,7 +44,7 @@ Candidate {% for cid in cids %} - {{cid}} + {{cid}} {% endfor %} From b760125739fe186ed1117835f077db66fc3f59fe Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 8 Sep 2021 11:37:46 +0100 Subject: [PATCH 09/54] . --- anatomy/templates/anatomy/exam_overview.html | 1 + longs/templates/longs/exam_overview.html | 1 + rapids/templates/rapids/exam_overview.html | 1 + 3 files changed, 3 insertions(+) diff --git a/anatomy/templates/anatomy/exam_overview.html b/anatomy/templates/anatomy/exam_overview.html index b1ca3117..b86771bb 100644 --- a/anatomy/templates/anatomy/exam_overview.html +++ b/anatomy/templates/anatomy/exam_overview.html @@ -34,6 +34,7 @@ {{ question.question_type }}: {{ question.get_primary_answer }}
Modality: {{ question.modality }}, View, Mark + [id: {{question.pk}}] {% endfor %} diff --git a/longs/templates/longs/exam_overview.html b/longs/templates/longs/exam_overview.html index c99b2816..2e65abbe 100644 --- a/longs/templates/longs/exam_overview.html +++ b/longs/templates/longs/exam_overview.html @@ -43,6 +43,7 @@ View / Edit + [id: {{question.pk}}]
diff --git a/rapids/templates/rapids/exam_overview.html b/rapids/templates/rapids/exam_overview.html index 47607572..ac755ea1 100644 --- a/rapids/templates/rapids/exam_overview.html +++ b/rapids/templates/rapids/exam_overview.html @@ -55,6 +55,7 @@ Examination: {{ question.get_examinations }}, View, Mark + [id: {{question.pk}}] {% endfor %} From 1ed3a2399cc5ee6358bed62282a3d8d9ec30f8dd Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 8 Sep 2021 12:16:57 +0100 Subject: [PATCH 10/54] . --- rapids/templates/rapids/mark.html | 35 ++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/rapids/templates/rapids/mark.html b/rapids/templates/rapids/mark.html index 00676944..14d9d34f 100644 --- a/rapids/templates/rapids/mark.html +++ b/rapids/templates/rapids/mark.html @@ -2,15 +2,26 @@ {% block content %}

Marking question {{question_details.current}} of {{question_details.total}}

-View Edit View Edit Admin Edit {% if question.normal %}

This question is normal

Answers will be automatically marked. + +

The following answers have been submitted

+ +
    + {% for answer in incorrect_answers %} +
  • +
    {{ answer }}
    +
  • + {% endfor %} +
{% else %}

This question is abnormal

-Answers marked as normal will be automatically marked.
+Answers marked as normal will be automatically marked.
Region: {{ question.get_regions }}, Abnormalities: {{ question.get_abnormalities }} {% endif %}
Key: 1 Marks, 0.5 Mark, 0 Marks
- {% endif %} - {% if question_details.current > 1 %} - - {% endif %} - - {% if question_details.current >= question_details.total %} - {% else %} - - - {% endif %} + {% endif %} + {% if question_details.current > 1 %} + + {% endif %} + + {% if question_details.current >= question_details.total %} + {% else %} + + + {% endif %} {{ form.as_p }} From 4d5cd763fe2a33e261dacb9ba31dfe0484ab07e9 Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 8 Sep 2021 12:21:05 +0100 Subject: [PATCH 11/54] . --- rapids/models.py | 7 +++++++ rapids/views.py | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/rapids/models.py b/rapids/models.py index ed379bb8..d6e2ea9f 100644 --- a/rapids/models.py +++ b/rapids/models.py @@ -257,6 +257,13 @@ class Rapid(models.Model): def get_unmarked_answer_count(self): return len(self.get_unmarked_answers()) + def get_user_answers(self): + user_answers = set( + [i.answer_compare for i in self.cid_user_answers.all()] + ) + + return user_answers + def get_compare_answers(self): return set( [ diff --git a/rapids/views.py b/rapids/views.py index f976ead8..d2733906 100755 --- a/rapids/views.py +++ b/rapids/views.py @@ -776,6 +776,10 @@ def mark(request, pk, sk): half_mark_answers = question.answers.filter(status=Answer.MarkOptions.HALF_MARK) incorrect_answers = question.answers.filter(status=Answer.MarkOptions.INCORRECT) + # this could be improved + if question.normal: + incorrect_answers = question.get_user_answers + return render( request, "rapids/mark.html", From b3b15e889b7213906bee4be41baa44a0098fcdf4 Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 8 Sep 2021 12:22:16 +0100 Subject: [PATCH 12/54] . --- rapids/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rapids/views.py b/rapids/views.py index d2733906..0b9c903c 100755 --- a/rapids/views.py +++ b/rapids/views.py @@ -778,7 +778,7 @@ def mark(request, pk, sk): # this could be improved if question.normal: - incorrect_answers = question.get_user_answers + incorrect_answers = question.get_user_answers() return render( request, From 65b6ef1ad897288b948006575da2ca9f4ae0049b Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 8 Sep 2021 12:23:54 +0100 Subject: [PATCH 13/54] . --- rapids/templates/rapids/mark.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rapids/templates/rapids/mark.html b/rapids/templates/rapids/mark.html index 14d9d34f..13a88e13 100644 --- a/rapids/templates/rapids/mark.html +++ b/rapids/templates/rapids/mark.html @@ -12,6 +12,7 @@ Answers will be automatically marked.

The following answers have been submitted

+
    {% for answer in incorrect_answers %}
  • @@ -19,6 +20,7 @@ Answers will be automatically marked.
  • {% endfor %}
+
{% else %}

This question is abnormal

Answers marked as normal will be automatically marked.
From d0a914c352612ca390d63ca030191f64848adf3c Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 8 Sep 2021 12:25:04 +0100 Subject: [PATCH 14/54] . --- rapids/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rapids/views.py b/rapids/views.py index 0b9c903c..f890a73e 100755 --- a/rapids/views.py +++ b/rapids/views.py @@ -779,6 +779,8 @@ def mark(request, pk, sk): # this could be improved if question.normal: incorrect_answers = question.get_user_answers() + incorrect_answers.remove("") + incorrect_answers.remove("normal") return render( request, From bb7710c458c58d8ee104ea5a8fac0f791800d6c2 Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 8 Sep 2021 12:44:03 +0100 Subject: [PATCH 15/54] . --- rapids/templates/rapids/mark.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rapids/templates/rapids/mark.html b/rapids/templates/rapids/mark.html index 13a88e13..7f6161d2 100644 --- a/rapids/templates/rapids/mark.html +++ b/rapids/templates/rapids/mark.html @@ -8,9 +8,9 @@ Edit {% if question.normal %}

This question is normal

-Answers will be automatically marked. +Answers will be automatically marked.
-

The following answers have been submitted

+

The following answers have been submitted for this question

    From 45ee6e13be133cce3a89a548897f0cbcb2d2c2d2 Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 8 Sep 2021 12:46:50 +0100 Subject: [PATCH 16/54] . --- rapids/views.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rapids/views.py b/rapids/views.py index f890a73e..289a871d 100755 --- a/rapids/views.py +++ b/rapids/views.py @@ -779,8 +779,10 @@ def mark(request, pk, sk): # this could be improved if question.normal: incorrect_answers = question.get_user_answers() - incorrect_answers.remove("") - incorrect_answers.remove("normal") + if "" in incorrect_answers: + incorrect_answers.remove("") + if "normal" in incorrect_answers: + incorrect_answers.remove("normal") return render( request, From cc5e4c93cbf0da7cd6db2dbef2ee5b1ec714c4c7 Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 8 Sep 2021 12:50:24 +0100 Subject: [PATCH 17/54] . --- rapids/templates/rapids/mark.html | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/rapids/templates/rapids/mark.html b/rapids/templates/rapids/mark.html index 7f6161d2..cb42bcb9 100644 --- a/rapids/templates/rapids/mark.html +++ b/rapids/templates/rapids/mark.html @@ -8,19 +8,21 @@ Edit {% if question.normal %}

    This question is normal

    -Answers will be automatically marked.
    +Answers will be automatically marked.

    The following answers have been submitted for this question

    +{% if incorrect_answers %}
    -
      - {% for answer in incorrect_answers %} -
    • -
      {{ answer }}
      -
    • - {% endfor %} -
    +
      + {% for answer in incorrect_answers %} +
    • +
      {{ answer }}
      +
    • + {% endfor %} +
    +{% endif %} {% else %}

    This question is abnormal

    Answers marked as normal will be automatically marked.
    From 114db645ce471b3c975e64cd191dcbe91bd82d54 Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 8 Sep 2021 12:50:52 +0100 Subject: [PATCH 18/54] . --- rapids/templates/rapids/mark.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rapids/templates/rapids/mark.html b/rapids/templates/rapids/mark.html index cb42bcb9..e65ce84f 100644 --- a/rapids/templates/rapids/mark.html +++ b/rapids/templates/rapids/mark.html @@ -10,9 +10,8 @@

    This question is normal

    Answers will be automatically marked.
    -

    The following answers have been submitted for this question

    - {% if incorrect_answers %} +

    The following answers have been submitted for this question

      {% for answer in incorrect_answers %} From f7fbc95d57200b1c57093ff5079aa2055bbc479d Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 8 Sep 2021 12:54:28 +0100 Subject: [PATCH 19/54] . --- rapids/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rapids/models.py b/rapids/models.py index d6e2ea9f..db9bbe00 100644 --- a/rapids/models.py +++ b/rapids/models.py @@ -608,7 +608,7 @@ class CidUserAnswer(models.Model): return 0 # If both are normal full marks elif q.normal and self.normal: - return 1 + return 2 # Then compare answer strings (as per anatomy questions) ans = self.answer_compare @@ -623,9 +623,9 @@ class CidUserAnswer(models.Model): mark = "unmarked" if marked_ans is not None: if marked_ans.status == Answer.MarkOptions.CORRECT: - mark = 1 + mark = 2 elif marked_ans.status == Answer.MarkOptions.HALF_MARK: - mark = 0.5 + mark = 1 elif marked_ans.status == Answer.MarkOptions.INCORRECT: mark = 0 From 04baa060eee06792390f2b3227f2972abf17fd8f Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 8 Sep 2021 12:56:06 +0100 Subject: [PATCH 20/54] . --- anatomy/static/css/anatomy.css | 12 ++++++------ rapids/templates/rapids/mark.html | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/anatomy/static/css/anatomy.css b/anatomy/static/css/anatomy.css index c3094a8e..16987f3a 100644 --- a/anatomy/static/css/anatomy.css +++ b/anatomy/static/css/anatomy.css @@ -40,7 +40,7 @@ a:link { } .answer-list.rapid .correct::after { - content: " [Score = 1]"; + content: " [Score = 2]"; } .answer-list .half-correct { @@ -53,7 +53,7 @@ a:link { } .answer-list.rapid .half-correct::after { - content: " [Score = 0.5]"; + content: " [Score = 1]"; } .answer-list .incorrect { @@ -377,11 +377,11 @@ img.uploading { color: lightblue; } -.rapid-ans.user-answer-score-1 { +.rapid-ans.user-answer-score-2 { color: lightblue; } -.rapid-ans.user-answer-score-0\.5 { +.rapid-ans.user-answer-score-1 { /* color: green; */ color: yellow; } @@ -402,11 +402,11 @@ td.user-answer-score-2::after { content: "✓✓"; } -td.user-answer-score-0\.5.rapid-ans::after { +td.user-answer-score-1.rapid-ans::after { content: "✓"; } -td.user-answer-score-1.rapid-ans::after { +td.user-answer-score-2.rapid-ans::after { content: "✓✓"; } diff --git a/rapids/templates/rapids/mark.html b/rapids/templates/rapids/mark.html index e65ce84f..ec21e600 100644 --- a/rapids/templates/rapids/mark.html +++ b/rapids/templates/rapids/mark.html @@ -61,7 +61,7 @@ Region: {{ question.get_regions }}, Abnormalities: {{ question.get_abnormalities {% endfor %}
    -
    Key: 1 Marks, 0.5 +
    Key: 2 Marks, 1 Mark, 0 Marks
    {% endif %} From af99f6814914d2b5ecb0f7e355aa6c5a7dd664ae Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 8 Sep 2021 12:56:25 +0100 Subject: [PATCH 21/54] . --- static/css/anatomy.css | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/static/css/anatomy.css b/static/css/anatomy.css index c3094a8e..16987f3a 100644 --- a/static/css/anatomy.css +++ b/static/css/anatomy.css @@ -40,7 +40,7 @@ a:link { } .answer-list.rapid .correct::after { - content: " [Score = 1]"; + content: " [Score = 2]"; } .answer-list .half-correct { @@ -53,7 +53,7 @@ a:link { } .answer-list.rapid .half-correct::after { - content: " [Score = 0.5]"; + content: " [Score = 1]"; } .answer-list .incorrect { @@ -377,11 +377,11 @@ img.uploading { color: lightblue; } -.rapid-ans.user-answer-score-1 { +.rapid-ans.user-answer-score-2 { color: lightblue; } -.rapid-ans.user-answer-score-0\.5 { +.rapid-ans.user-answer-score-1 { /* color: green; */ color: yellow; } @@ -402,11 +402,11 @@ td.user-answer-score-2::after { content: "✓✓"; } -td.user-answer-score-0\.5.rapid-ans::after { +td.user-answer-score-1.rapid-ans::after { content: "✓"; } -td.user-answer-score-1.rapid-ans::after { +td.user-answer-score-2.rapid-ans::after { content: "✓✓"; } From edd28310da10e1bcf5e95fd1c14e93d3faa58da1 Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 8 Sep 2021 14:12:16 +0100 Subject: [PATCH 22/54] . --- rapids/templates/rapids/exam_scores.html | 2 +- rapids/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rapids/templates/rapids/exam_scores.html b/rapids/templates/rapids/exam_scores.html index 53d9df39..267cef6f 100644 --- a/rapids/templates/rapids/exam_scores.html +++ b/rapids/templates/rapids/exam_scores.html @@ -43,7 +43,7 @@ Candidate - {% for cid in cids %} + {{cid}} {{cid}} {% endfor %} diff --git a/rapids/views.py b/rapids/views.py index 289a871d..32c57667 100755 --- a/rapids/views.py +++ b/rapids/views.py @@ -881,7 +881,7 @@ def exam_scores_cid(request, pk): ) fig_html = fig.to_html() - max_score = len(questions) + max_score = len(questions) * 2 return render( request, From 88fb982dc9ce46de6db77628e49bdcc08ba73c44 Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 8 Sep 2021 14:16:55 +0100 Subject: [PATCH 23/54] . --- rapids/templates/rapids/exam_scores.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rapids/templates/rapids/exam_scores.html b/rapids/templates/rapids/exam_scores.html index 267cef6f..a4de1751 100644 --- a/rapids/templates/rapids/exam_scores.html +++ b/rapids/templates/rapids/exam_scores.html @@ -43,8 +43,8 @@ Candidate - {{cid}} - {{cid}} + {% for cid in cids %} + {{cid}} {% endfor %} From a5ac0d373473c41470fe7d69e3ff42bf33f20515 Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 8 Sep 2021 14:19:14 +0100 Subject: [PATCH 24/54] . --- rapids/templates/rapids/exam_scores.html | 2 +- rapids/urls.py | 2 +- rapids/views.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rapids/templates/rapids/exam_scores.html b/rapids/templates/rapids/exam_scores.html index a4de1751..675a814d 100644 --- a/rapids/templates/rapids/exam_scores.html +++ b/rapids/templates/rapids/exam_scores.html @@ -44,7 +44,7 @@ Candidate {% for cid in cids %} - {{cid}} + {{cid}} {% endfor %} diff --git a/rapids/urls.py b/rapids/urls.py index 819ce93d..c8864e4a 100755 --- a/rapids/urls.py +++ b/rapids/urls.py @@ -56,7 +56,7 @@ urlpatterns = [ ), path("exam//scores", cache_page(60 * 1)(views.exam_scores_cid), name="exam_scores_cid"), path( - "exam//scores//", + "exam//scores//", views.exam_scores_cid_user, name="exam_scores_cid_user", ), diff --git a/rapids/views.py b/rapids/views.py index 32c57667..aba94b2e 100755 --- a/rapids/views.py +++ b/rapids/views.py @@ -907,11 +907,11 @@ def exam_scores_cid(request, pk): ) -def exam_scores_cid_user(request, pk, sk): +def exam_scores_cid_user(request, pk, cid): exam = get_object_or_404(Exam, pk=pk) # TODO:Need some kind of test for cid - cid = sk + #cid = sk questions = exam.exam_questions.all() From 870cff23616a463e9f9ead5b5163f163afc75c7d Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 8 Sep 2021 14:28:41 +0100 Subject: [PATCH 25/54] . --- longs/templates/longs/long_display_block.html | 3 +++ rapids/templates/rapids/question_display_block.html | 3 +++ 2 files changed, 6 insertions(+) diff --git a/longs/templates/longs/long_display_block.html b/longs/templates/longs/long_display_block.html index 4f75bc26..2bd3a964 100755 --- a/longs/templates/longs/long_display_block.html +++ b/longs/templates/longs/long_display_block.html @@ -2,6 +2,9 @@
    {{ question.created_date|date:"d/m/Y" }}
    +
    + ID: {{ question.id }} +

    Description: {{ question.description }}

    History: {{ question.history }}

    diff --git a/rapids/templates/rapids/question_display_block.html b/rapids/templates/rapids/question_display_block.html index d9f608c7..532e6012 100755 --- a/rapids/templates/rapids/question_display_block.html +++ b/rapids/templates/rapids/question_display_block.html @@ -2,6 +2,9 @@
    {{ question.created_date|date:"d/m/Y" }}
    +
    + ID: {{ question.id }} +

    Rapid: {{ question }}

    Normal: {{ question.normal }}

    {{ question.created_date|date:"d/m/Y" }}
    @@ -109,7 +110,16 @@ {% endfor %}