diff --git a/src/main/java/app/controllers/StatsController.java b/src/main/java/app/controllers/StatsController.java index 5571d5c..5fe1ab7 100644 --- a/src/main/java/app/controllers/StatsController.java +++ b/src/main/java/app/controllers/StatsController.java @@ -63,7 +63,7 @@ public class StatsController { public ResponseEntity> GetPeakOfDays( @RequestParam(required = false, defaultValue = "7") Integer limit, @RequestParam(required = false, defaultValue = "%") String server_id) { - if (limit > 31) return new ResponseEntity<>(HttpStatus.NOT_ACCEPTABLE); + if (limit > 366) return new ResponseEntity<>(HttpStatus.NOT_ACCEPTABLE); return new ResponseEntity<>(onlineUpdater.getPeakOfDays(server_id, limit), HttpStatus.OK); }