Skip to content
Snippets Groups Projects
Commit c115347b authored by Christoph Thelen's avatar Christoph Thelen
Browse files

Fix for #14551: Differentiate lecture and preparation q's

parent 358f105b
No related merge requests found
......@@ -3,7 +3,7 @@
"language":"javascript",
"views":{
"statistics":{
"map":"function(doc) { if (doc.type == 'session') { if (doc.active == 1) { emit('openSessions', 1); } else { emit('closedSessions', 1); } } if (doc.type == 'skill_question') { emit('questions', 1); } if (doc.type == 'skill_question_answer') { emit('answers', 1); } if (doc.type === 'interposed_question') { emit ('interposedQuestions', 1); } }",
"map":"function(doc) { if (doc.type == 'session') { if (doc.active == 1) { emit('openSessions', 1); } else { emit('closedSessions', 1); } } if (doc.type == 'skill_question') { if (doc.questionVariant === 'lecture') { emit('lectureQuestions', 1); } else if (doc.questionVariant === 'preparation') { emit('preparationQuestions', 1); } } if (doc.type == 'skill_question_answer') { emit('answers', 1); } if (doc.type === 'interposed_question') { emit ('interposedQuestions', 1); } }",
"reduce":"_count"
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment