Commit 4820c6fc authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Fix complex key for database view query

Additionally, removed obsolete TODO comment.
parent b87bda0d
......@@ -205,7 +205,6 @@ public class CouchDBDao implements IDatabaseDao, ApplicationEventPublisherAware
@Override
public List<Session> getPublicPoolSessions() {
// TODO replace with new view
final View view = new View("session/partial_by_ppsubject_name_for_publicpool");
final ViewResults sessions = getDatabase().view(view);
......@@ -1847,7 +1846,7 @@ public class CouchDBDao implements IDatabaseDao, ApplicationEventPublisherAware
public List<Question> getFlashcardsForTeachers(final Session session) {
final View view = new View("content/doc_by_sessionid_variant_active");
view.setStartKeyArray(session.get_id(), "flashcard");
view.setEndKeyArray(session.get_id(), "{}");
view.setEndKeyArray(session.get_id(), "flashcard", "{}");
return getQuestions(view, session);
}
......
Markdown is supported
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