Skip to content

Commit

Permalink
export previous year's question with question details
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Mar 4, 2025
1 parent 838dd49 commit d27af45
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crowdsourcer/management/commands/export_marks.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ def handle(
"topic",
"clarifications",
"groups",
"previous_year_question",
]
]

Expand All @@ -187,6 +188,10 @@ def handle(

groups = [g.description for g in question.questiongroup.all()]

prev_question = ""
if question.previous_question:
prev_question = question.previous_question.number_and_part

question_data.append(
[
question.number_and_part,
Expand All @@ -200,6 +205,7 @@ def handle(
question.topic,
question.clarifications,
",".join(groups),
prev_question,
]
)

Expand Down

0 comments on commit d27af45

Please sign in to comment.