moodle filtering
This commit is contained in:
parent
85a784b3c0
commit
2b5047343c
2 changed files with 2 additions and 3 deletions
|
@ -101,8 +101,7 @@ public abstract class CourseAccess {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Result<List<QuizData>> getQuizzes(final FilterMap filterMap) {
|
public Result<List<QuizData>> getQuizzes(final FilterMap filterMap) {
|
||||||
// TODO deal with filter attributes
|
this.allQuizzesRequest.setSupplier(allQuizzesSupplier(filterMap));
|
||||||
|
|
||||||
return this.allQuizzesRequest.get()
|
return this.allQuizzesRequest.get()
|
||||||
.map(LmsAPIService.quizzesFilterFunction(filterMap));
|
.map(LmsAPIService.quizzesFilterFunction(filterMap));
|
||||||
}
|
}
|
||||||
|
|
|
@ -307,7 +307,7 @@ public class MoodleCourseAccess extends CourseAccess {
|
||||||
course.end_date, from);
|
course.end_date, from);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (course.time_created != null && course.time_created.longValue() < from) {
|
if (course.start_date != null && course.start_date.longValue() < from) {
|
||||||
log.info("(start)removed course: {} start {} end {}, from {}", course.short_name, course.start_date,
|
log.info("(start)removed course: {} start {} end {}, from {}", course.short_name, course.start_date,
|
||||||
course.end_date, from);
|
course.end_date, from);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue