3494-UI-improvements-grading-templates #21
@ -116,14 +116,14 @@ class EditingGradingTemplate implements Serializable {
|
||||
private List<Point> points = new ArrayList<>();
|
||||
private Flag flag;
|
||||
private Type type = Type.PROJECT;
|
||||
private int pointsRequiredToPass;
|
||||
private int pointsRequiredToPass = 1;
|
||||
|
||||
Criteria(GradingCriterionTemplate criteria) {
|
||||
this.titleSv = criteria.getTitle();
|
||||
this.titleEn = criteria.getTitleEn();
|
||||
this.pointsRequiredToPass = criteria.getPointsRequiredToPass();
|
||||
for (var point : criteria.getGradingCriterionPointTemplates()) {
|
||||
if (point.getPoint() == 0) continue;
|
||||
if (point.getPoint() == 1) continue;
|
||||
Point editingPoint = new Point(point);
|
||||
this.points.add(editingPoint);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user