Skip to content

Commit

Permalink
include extra question data in mark export
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Oct 2, 2023
1 parent 00fa7d5 commit afba0ed
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crowdsourcer/management/commands/export_marks.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ def handle(
"weighting",
"how_marked",
"criteria",
"topic",
"clarifications",
"groups",
]
]

Expand All @@ -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,
Expand All @@ -141,6 +146,9 @@ def handle(
question.weighting,
question.how_marked,
question.criteria,
question.topic,
question.clarifications,
",".join(groups),
]
)

Expand Down

0 comments on commit afba0ed

Please sign in to comment.