code cleanup uncomment Demo Exams for development

This commit is contained in:
anhefti 2022-08-15 11:40:13 +02:00
parent 98cc06a442
commit c5aa34c939

View file

@ -92,25 +92,25 @@ public class MockCourseAccessAPI implements CourseAccessAPI {
null, null,
"http://lms.mockup.com/api/")); "http://lms.mockup.com/api/"));
if (webserviceInfo.hasProfile("dev")) { // if (webserviceInfo.hasProfile("dev")) {
for (int i = 12; i < 50; i++) { // for (int i = 12; i < 50; i++) {
this.mockups.add(new QuizData( // this.mockups.add(new QuizData(
"quiz10" + i, institutionId, lmsSetupId, lmsType, "Demo Quiz 10 " + i + " (MOCKUP)", // "quiz10" + i, institutionId, lmsSetupId, lmsType, "Demo Quiz 10 " + i + " (MOCKUP)",
i + "_Starts in a minute and ends after five minutes", // i + "_Starts in a minute and ends after five minutes",
DateTime.now(DateTimeZone.UTC).plus(Constants.MINUTE_IN_MILLIS) // DateTime.now(DateTimeZone.UTC).plus(Constants.MINUTE_IN_MILLIS)
.toString(Constants.DEFAULT_DATE_TIME_FORMAT), // .toString(Constants.DEFAULT_DATE_TIME_FORMAT),
DateTime.now(DateTimeZone.UTC).plus(6 * Constants.MINUTE_IN_MILLIS) // DateTime.now(DateTimeZone.UTC).plus(6 * Constants.MINUTE_IN_MILLIS)
.toString(Constants.DEFAULT_DATE_TIME_FORMAT), // .toString(Constants.DEFAULT_DATE_TIME_FORMAT),
"http://lms.mockup.com/api/")); // "http://lms.mockup.com/api/"));
this.mockups.add(new QuizData( // this.mockups.add(new QuizData(
"quiz11" + i, institutionId, lmsSetupId, lmsType, "Demo Quiz 11 " + i + " (MOCKUP)", // "quiz11" + i, institutionId, lmsSetupId, lmsType, "Demo Quiz 11 " + i + " (MOCKUP)",
i + "_Starts in a minute and ends never", // i + "_Starts in a minute and ends never",
DateTime.now(DateTimeZone.UTC).plus(Constants.MINUTE_IN_MILLIS) // DateTime.now(DateTimeZone.UTC).plus(Constants.MINUTE_IN_MILLIS)
.toString(Constants.DEFAULT_DATE_TIME_FORMAT), // .toString(Constants.DEFAULT_DATE_TIME_FORMAT),
null, // null,
"http://lms.mockup.com/api/")); // "http://lms.mockup.com/api/"));
} // }
} // }
} }
@Override @Override