diff --git a/src/main/resources/views/statistics b/src/main/resources/views/statistics index 58c9afa5f6c9478cfc1e4b87b7a6775d3306d66b..3d3f80c2f86234c29156182052df61ee44109e3b 100644 --- a/src/main/resources/views/statistics +++ b/src/main/resources/views/statistics @@ -3,7 +3,7 @@ "language":"javascript", "views":{ "statistics":{ - "map":"function(doc) {\n switch (doc.type) {\n case 'session':\n if (doc.active == 1) { emit('openSessions', 1); }\n else { emit('closedSessions', 1); }\n break;\n case 'skill_question':\n if (doc.questionVariant === 'lecture') { emit('lectureQuestions', 1); }\n else if (doc.questionVariant === 'preparation') { emit('preparationQuestions', 1); }\n if (doc.piRound == 2) { emit('conceptQuestions', 1); }\n break;\n case 'skill_question_answer':\n emit('answers', 1);\n break;\n case 'interposed_question':\n emit ('interposedQuestions', 1);\n break;\n }\n}", + "map":"function(doc) {\n switch (doc.type) {\n case 'session':\n if (doc.active == 1) { emit('openSessions', 1); }\n else { emit('closedSessions', 1); }\n break;\n case 'skill_question':\n if (doc.questionType === 'flashcard') {\n emit('flashcards', 1);\n } else {\n if (doc.questionVariant === 'lecture') { emit('lectureQuestions', 1); }\n else if (doc.questionVariant === 'preparation') { emit('preparationQuestions', 1); }\n if (doc.piRound == 2) { emit('conceptQuestions', 1); }\n }\n break;\n case 'skill_question_answer':\n emit('answers', 1);\n break;\n case 'interposed_question':\n emit ('interposedQuestions', 1);\n break;\n }\n}", "reduce":"_count" }, "unique_session_creators":{