Skip to content

Commit

Permalink
Debug Writing Extract QA schools report
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Apr 21, 2018
1 parent dc1953b commit e17c7fa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 4 additions & 1 deletion app/naprrql/reporting_templates/qa/qaTestAttempts.gql
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
query NAPTestAttempts($acaraIDs: [String]) {
domain_scores_report_by_school(acaraIDs: $acaraIDs) {
domain_scores_event_report_by_school(acaraIDs: $acaraIDs) {
Event {
ParticipationCode
}
Test {
TestContent {
TestLevel
Expand Down
3 changes: 2 additions & 1 deletion naprrql/qa-writing-schools-report-pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,9 @@ func qaWritingAttemptsQueryExecutor(ctx context.Context, query string, url strin

school.TestAttempts = make(map[string]int)
for _, result := range json.Array() {
participation := result.Get("Event.ParticipationCode").String()
domain := result.Get("Test.TestContent.TestDomain").String()
if domain == "Writing" {
if domain == "Writing" && participation == "P" {
key := result.Get("Test.TestContent.TestLevel").String() + ":" + domain
school.TestAttempts[key]++
school.TotalAttempts++
Expand Down
4 changes: 2 additions & 2 deletions version/version.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package version
var(
Id = 10556646
TagName = "0-9-26"
Id = 10642144
TagName = "0-9-28"
)

0 comments on commit e17c7fa

Please sign in to comment.