Skip to content
Snippets Groups Projects
Commit 33fa6689 authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Revert "Disabled broken LMS code which is not working because of a missing view"

This reverts commit 8c8412bb.

This commit is no longer needed since the missing view has been reimplemented.
parent 8c8412bb
No related merge requests found
...@@ -130,13 +130,11 @@ public class SessionService implements ISessionService { ...@@ -130,13 +130,11 @@ public class SessionService implements ISessionService {
@Override @Override
public final List<Session> getMySessions(final User user) { public final List<Session> getMySessions(final User user) {
List<Session> mySessions = databaseDao.getMySessions(user); List<Session> mySessions = databaseDao.getMySessions(user);
if (true /*connectorClient == null*/) { if (connectorClient == null) {
return mySessions; return mySessions;
} }
/* FIXME: Database view is missing (setuptool) so code below has been disabled */ List<Session> courseSessions = databaseDao.getCourseSessions(
final List<Session> courseSessions = databaseDao.getCourseSessions(
connectorClient.getCourses(user.getUsername()).getCourse() connectorClient.getCourses(user.getUsername()).getCourse()
); );
...@@ -223,11 +221,6 @@ public class SessionService implements ISessionService { ...@@ -223,11 +221,6 @@ public class SessionService implements ISessionService {
@Override @Override
public int countSessions(List<Course> courses) { public int countSessions(List<Course> courses) {
if (true) {
/* FIXME: Database view is missing (setuptool) so code below has been disabled */
return 0;
}
List<Session> sessions = databaseDao.getCourseSessions(courses); List<Session> sessions = databaseDao.getCourseSessions(courses);
if (sessions == null) { if (sessions == null) {
return 0; return 0;
......
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