diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/ans/AnsLmsAPITemplate.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/ans/AnsLmsAPITemplate.java index 116a9f06..078227ac 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/ans/AnsLmsAPITemplate.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/ans/AnsLmsAPITemplate.java @@ -236,6 +236,8 @@ public class AnsLmsAPITemplate extends AbstractCachedCourseAccess implements Lms } final DateTime startTime = new DateTime(a.start_at); final DateTime endTime = new DateTime(a.end_at); + final Map attrs = new HashMap<>(); + attrs.put("assignment_id", String.valueOf(a.id)); return new QuizData( String.valueOf(a.id), lmsSetup.getInstitutionId(), @@ -246,7 +248,7 @@ public class AnsLmsAPITemplate extends AbstractCachedCourseAccess implements Lms startTime, endTime, a.start_url, - Map.of("assignment_id", String.valueOf(a.id))); + attrs); } private List getAssignments(final RestTemplate restTemplate) {