Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Setup Tool
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
ARSnova Setup Tool
Commits
1d9a25e2
There was an error fetching the commit references. Please try again later.
Commit
1d9a25e2
authored
8 years ago
by
Daniel Gerhardt
Browse files
Options
Downloads
Patches
Plain Diff
Add count for flashcards
parent
d26b0e91
1 merge request
!6
Flashcard stats
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/resources/views/statistics
+1
-1
1 addition, 1 deletion
src/main/resources/views/statistics
with
1 addition
and
1 deletion
src/main/resources/views/statistics
+
1
−
1
View file @
1d9a25e2
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
"language":"javascript",
"language":"javascript",
"views":{
"views":{
"statistics":{
"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"
"reduce":"_count"
},
},
"unique_session_creators":{
"unique_session_creators":{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment