Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basic working export of marking data #99

Closed
wants to merge 13 commits into from
5 changes: 5 additions & 0 deletions ceuk-marking/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,11 @@
stats.QuestionDataCSVView.as_view(),
name="question_data_csv",
),
path(
"stats/scores/weighted_totals/",
stats.WeightedScoresDataCSVView.as_view(),
name="weighted_totals_csv",
),
# audit screens
path(
"section/audit/<section_title>/authorities/",
Expand Down
72 changes: 72 additions & 0 deletions crowdsourcer/fixtures/audit_ca_marks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
[
{
"model": "crowdsourcer.response",
"pk": 36,
"fields": {
"authority": 5,
"question": 350,
"user": 2,
"option": null,
"response_type": 3,
"created": "2023-03-15T17:22:10+0000",
"last_update": "2023-03-15T17:22:10+0000",
"multi_option": [194]
}
},
{
"model": "crowdsourcer.response",
"pk": 37,
"fields": {
"authority": 5,
"question": 351,
"user": 2,
"option": 197,
"response_type": 3,
"created": "2023-03-15T17:22:10+0000",
"last_update": "2023-03-15T17:22:10+0000",
"multi_option": []
}
},
{
"model": "crowdsourcer.response",
"pk": 38,
"fields": {
"authority": 5,
"question": 352,
"user": 2,
"option": 198,
"response_type": 3,
"created": "2023-03-15T17:22:10+0000",
"last_update": "2023-03-15T17:22:10+0000",
"multi_option": []
}
},
{
"model": "crowdsourcer.response",
"pk": 39,
"fields": {
"authority": 5,
"question": 353,
"user": 2,
"option": 199,
"response_type": 3,
"created": "2023-03-15T17:22:10+0000",
"last_update": "2023-03-15T17:22:10+0000",
"multi_option": []
}
},
{
"model": "crowdsourcer.response",
"pk": 40,
"fields": {
"authority": 5,
"question": 354,
"user": 2,
"option": 201,
"response_type": 3,
"created": "2023-03-15T17:22:10+0000",
"last_update": "2023-03-15T17:22:10+0000",
"multi_option": []
}
}
]
142 changes: 142 additions & 0 deletions crowdsourcer/fixtures/audit_marking.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
[
{
"model": "crowdsourcer.response",
"pk": 8,
"fields": {
"authority": 2,
"question": 281,
"user": 2,
"option": 14,
"response_type": 3,
"public_notes": "public notrs",
"page_number": "0",
"evidence": "",
"private_notes": "private notes",
"revision_type": null,
"revision_notes": null,
"created": "2023-03-15T17:22:10+0000",
"last_update": "2023-03-15T17:22:10+0000",
"multi_option": []
}
},
{
"model": "crowdsourcer.response",
"pk": 9,
"fields": {
"authority": 2,
"question": 282,
"user": 2,
"option": 161,
"response_type": 3,
"public_notes": "public notrs",
"page_number": "0",
"evidence": "",
"private_notes": "private notes",
"revision_type": null,
"revision_notes": null,
"created": "2023-03-15T17:22:10+0000",
"last_update": "2023-03-15T17:22:10+0000",
"multi_option": []
}
},
{
"model": "crowdsourcer.response",
"pk": 10,
"fields": {
"authority": 1,
"question": 269,
"user": 2,
"option": 2,
"response_type": 3,
"public_notes": "a public note",
"page_number": "0",
"evidence": "",
"private_notes": "a private note",
"revision_type": null,
"revision_notes": null,
"created": "2023-03-15T17:22:10+0000",
"last_update": "2023-03-15T17:22:10+0000",
"multi_option": []
}
},
{
"model": "crowdsourcer.response",
"pk": 11,
"fields": {
"authority": 1,
"question": 272,
"user": 2,
"option": 181,
"response_type": 3,
"public_notes": "a public note",
"page_number": "0",
"evidence": "",
"private_notes": "a private note",
"revision_type": null,
"revision_notes": null,
"created": "2023-03-15T17:22:10+0000",
"last_update": "2023-03-15T17:22:10+0000",
"multi_option": []
}
},
{
"model": "crowdsourcer.response",
"pk": 12,
"fields": {
"authority": 1,
"question": 273,
"user": 2,
"option": 6,
"response_type": 3,
"public_notes": "a public note",
"page_number": "0",
"evidence": "",
"private_notes": "a private note",
"revision_type": null,
"revision_notes": null,
"created": "2023-03-15T17:22:10+0000",
"last_update": "2023-03-15T17:22:10+0000",
"multi_option": []
}
},
{
"model": "crowdsourcer.response",
"pk": 13,
"fields": {
"authority": 3,
"question": 281,
"user": 2,
"option": 14,
"response_type": 3,
"public_notes": "public notrs",
"page_number": "0",
"evidence": "",
"private_notes": "private notes",
"revision_type": null,
"revision_notes": null,
"created": "2023-03-15T17:22:10+0000",
"last_update": "2023-03-15T17:22:10+0000",
"multi_option": []
}
},
{
"model": "crowdsourcer.response",
"pk": 14,
"fields": {
"authority": 3,
"question": 282,
"user": 2,
"option": null,
"response_type": 3,
"public_notes": "public notrs",
"page_number": "0",
"evidence": "",
"private_notes": "private notes",
"revision_type": null,
"revision_notes": null,
"created": "2023-03-15T17:22:10+0000",
"last_update": "2023-03-15T17:22:10+0000",
"multi_option": [161,162]
}
}
]
Loading
Loading