Skip to content

Commit

Permalink
낮은 점수로 갱신되는경우 무시
Browse files Browse the repository at this point in the history
  • Loading branch information
syspro86 committed Jun 6, 2024
1 parent f8e1800 commit f7ec519
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,12 @@ public void saveRun(int season, int period, BestRun run) {
String.format("%d -> %d", record.getPlayers().size(), dbPlayers.size()));
recordChanged |= dbPlayers.size() > record.getPlayers().size();
}
if (Math.abs(dbRecord.getMythicRating() - record.getMythicRating()) >= 0.1f) {
if (dbRecord.getMythicRating() < record.getMythicRating()) {
updatedProperties.put("mythic rating",
String.format("%f -> %f", record.getMythicRating(), dbRecord.getMythicRating()));
recordChanged |= Math.abs(dbRecord.getMythicRating() - record.getMythicRating()) >= 0.1f;
recordChanged |= dbRecord.getMythicRating() < record.getMythicRating();
} else {
record.setMythicRating(dbRecord.getMythicRating());
}

if (!recordChanged) {
Expand Down

0 comments on commit f7ec519

Please sign in to comment.