Skip to content

Commit

Permalink
letters score bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Goulven.Furet authored and Goulven.Furet committed Nov 27, 2023
1 parent b616cdf commit ca4c1d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions commons/src/main/java/org/open4goods/model/data/Score.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,15 @@ public String letter() {
Long percent = percent();

if (percent <= 20.0) {
return "A";
return "E";
} else if (percent <= 40.0) {
return "B";
return "D";
}else if (percent <= 60.0) {
return "C";
}else if (percent <= 80.0) {
return "D";
return "B";
} else {
return "E";
return "A";
}
}

Expand Down

0 comments on commit ca4c1d1

Please sign in to comment.