Compare commits
2 Commits
58bdc6f414
...
90ec976939
Author | SHA1 | Date | |
---|---|---|---|
90ec976939 | |||
a5a69ae979 |
@ -29,7 +29,7 @@ public class ScoresController {
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @return the scores
|
||||
@ -38,7 +38,7 @@ public class ScoresController {
|
||||
@ResponseBody
|
||||
@GetMapping(value = "/top/{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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -251,7 +251,7 @@ public class ScoreSaberPlatform extends Platform {
|
||||
}
|
||||
finished++;
|
||||
|
||||
if (finished % 100 == 0) {
|
||||
if (finished % 100 == 0 || finished == leaderboards.size()) {
|
||||
log.info("Updated {}/{} leaderboards for platform '{}'",
|
||||
finished,
|
||||
leaderboards.size(),
|
||||
|
Reference in New Issue
Block a user