Skip to content
Snippets Groups Projects
Commit 47aa07e7 authored by Tom Käsler's avatar Tom Käsler
Browse files

#15391 new views to only get subjects for session

parent 2ce5ccb4
No related merge requests found
......@@ -76,6 +76,18 @@
},
"lecture_question_ids_by_session_for_all": {
"map": "function(doc) { if (doc.type == 'skill_question' && doc.questionVariant == 'lecture' && doc.active == 1) { emit([doc.sessionId, doc.subject, doc.text], {}); }}"
},
"lecture_question_subjects_by_session": {
"map": "function(doc) { if (doc.type == 'skill_question' && doc.questionVariant == 'lecture') { emit(doc.sessionId, doc.subject); }}"
},
"preparation_question_subjects_by_session": {
"map": "function(doc) { if (doc.type == 'skill_question' && doc.questionVariant == 'preparation') { emit(doc.sessionId, doc.subject); }}"
},
"lecture_question_ids_by_session_and_subject": {
"map": "function(doc) { if (doc.type == 'skill_question' && doc.questionVariant == 'lecture') { emit([doc.sessionId, doc.subject], doc._id); }}"
},
"preparation_question_ids_by_session_and_subject": {
"map": "function(doc) { if (doc.type == 'skill_question' && doc.questionVariant == 'preparation') { emit([doc.sessionId, doc.subject], doc._id); }}"
}
}
}
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