Skip to content
Snippets Groups Projects
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
Branches
No related merge requests found
Pipeline #9196 passed with warnings with stages
in 4 minutes and 6 seconds
...@@ -205,7 +205,6 @@ public class CouchDBDao implements IDatabaseDao, ApplicationEventPublisherAware ...@@ -205,7 +205,6 @@ public class CouchDBDao implements IDatabaseDao, ApplicationEventPublisherAware
@Override @Override
public List<Session> getPublicPoolSessions() { public List<Session> getPublicPoolSessions() {
// TODO replace with new view
final View view = new View("session/partial_by_ppsubject_name_for_publicpool"); final View view = new View("session/partial_by_ppsubject_name_for_publicpool");
final ViewResults sessions = getDatabase().view(view); final ViewResults sessions = getDatabase().view(view);
...@@ -1847,7 +1846,7 @@ public class CouchDBDao implements IDatabaseDao, ApplicationEventPublisherAware ...@@ -1847,7 +1846,7 @@ public class CouchDBDao implements IDatabaseDao, ApplicationEventPublisherAware
public List<Question> getFlashcardsForTeachers(final Session session) { public List<Question> getFlashcardsForTeachers(final Session session) {
final View view = new View("content/doc_by_sessionid_variant_active"); final View view = new View("content/doc_by_sessionid_variant_active");
view.setStartKeyArray(session.get_id(), "flashcard"); view.setStartKeyArray(session.get_id(), "flashcard");
view.setEndKeyArray(session.get_id(), "{}"); view.setEndKeyArray(session.get_id(), "flashcard", "{}");
return getQuestions(view, session); return getQuestions(view, session);
} }
......
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