2 Commits

Author SHA1 Message Date
90ec976939 increase top scores to 100 from 50
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 35s
2024-08-01 02:25:36 +01:00
a5a69ae979 fix print 2024-08-01 02:18:01 +01:00
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ public class ScoresController {
/** /**
* A GET mapping to retrieve the top * A GET mapping to retrieve the top
* 50 scores for a platform * scores for a platform
* *
* @param platform the platform to get the scores from * @param platform the platform to get the scores from
* @return the scores * @return the scores
@ -38,7 +38,7 @@ public class ScoresController {
@ResponseBody @ResponseBody
@GetMapping(value = "/top/{platform}") @GetMapping(value = "/top/{platform}")
public ResponseEntity<List<?>> getTopScores(@PathVariable String platform) { public ResponseEntity<List<?>> getTopScores(@PathVariable String platform) {
return ResponseEntity.ok(trackedScoreService.getTopScores(Platform.Platforms.getPlatform(platform), 50)); return ResponseEntity.ok(trackedScoreService.getTopScores(Platform.Platforms.getPlatform(platform), 100));
} }
/** /**

View File

@ -251,7 +251,7 @@ public class ScoreSaberPlatform extends Platform {
} }
finished++; finished++;
if (finished % 100 == 0) { if (finished % 100 == 0 || finished == leaderboards.size()) {
log.info("Updated {}/{} leaderboards for platform '{}'", log.info("Updated {}/{} leaderboards for platform '{}'",
finished, finished,
leaderboards.size(), leaderboards.size(),