From 7e11e29e4ae150c25951db8c8aaaed5b4e158e21 Mon Sep 17 00:00:00 2001
From: Christoph Thelen <christoph.thelen@mni.thm.de>
Date: Wed, 4 Mar 2015 10:52:07 +0100
Subject: [PATCH] Fix for #14551: Add concept questions

We define a concept question as one that has reached
the second PI round.
---
 src/main/resources/views/statistics | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/resources/views/statistics b/src/main/resources/views/statistics
index d975725..f792d4e 100644
--- a/src/main/resources/views/statistics
+++ b/src/main/resources/views/statistics
@@ -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') { 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); } }",
+			"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.piRound == 2) { emit('conceptQuestions', 1); } } if (doc.type == 'skill_question_answer') { emit('answers', 1); } if (doc.type === 'interposed_question') { emit ('interposedQuestions', 1); } }",
 			"reduce":"_count"
 		},
 		"unique_session_creators":{
-- 
GitLab