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:
commit
63def650c9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user