From afba0edb1f1aa4e8d2886049f1477635e2e5ad6e Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Mon, 2 Oct 2023 17:22:51 +0100 Subject: [PATCH] include extra question data in mark export --- crowdsourcer/management/commands/export_marks.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crowdsourcer/management/commands/export_marks.py b/crowdsourcer/management/commands/export_marks.py index f3aa38a7..15a5bcee 100644 --- a/crowdsourcer/management/commands/export_marks.py +++ b/crowdsourcer/management/commands/export_marks.py @@ -120,6 +120,9 @@ def handle( "weighting", "how_marked", "criteria", + "topic", + "clarifications", + "groups", ] ] @@ -131,6 +134,8 @@ def handle( if scoring["q_maxes"][section].get(q_no, None) is not None: max_score = scoring["q_maxes"][section][q_no] + groups = [g.description for g in question.questiongroup.all()] + question_data.append( [ question.number_and_part, @@ -141,6 +146,9 @@ def handle( question.weighting, question.how_marked, question.criteria, + question.topic, + question.clarifications, + ",".join(groups), ] )