From f88eb8f93843cee0dfb29d50915c07504d6ae2d8 Mon Sep 17 00:00:00 2001 From: gsd Date: Wed, 2 Oct 2024 22:59:51 +0300 Subject: [PATCH] peak hype --- src/main/java/app/controllers/StatsController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }