Merge pull request 'fix' (#52) from schedule-fix into master

Reviewed-on: http://git.plannaplan.pl/filipizydorczyk/backend/pulls/52
This commit is contained in:
Marcin Woźniak 2021-01-22 16:50:30 +01:00
commit 63def650c9

View File

@ -95,6 +95,7 @@ public class AssignmentResponse {
* places
*/
public AssignmentResponse(Course course, Assignment lecture, Assignment classes, HashMap<Long, Integer> ammounts) {
this.id = course.getId();
this.name = course.getName();
this.classes = new GroupWithCapacityResponse(classes, ammounts.get(classes.getGroup().getId()));
this.lecture = new GroupWithCapacityResponse(lecture, ammounts.get(lecture.getGroup().getId()));
@ -106,6 +107,7 @@ public class AssignmentResponse {
* @param classes class Groups entity
*/
public AssignmentResponse(Course course, Assignment lecture, Assignment classes) {
this.id = course.getId();
this.name = course.getName();
this.classes = new GroupWithCapacityResponse(classes);
this.lecture = new GroupWithCapacityResponse(lecture);