Skip to content

Commit 5029a0a

Browse files
authored
Adjusting highscores span to support page up to 23 (#168)
1 parent 576e88f commit 5029a0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/webserver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,8 @@ func tibiaHighscoresV3(c *gin.Context) {
390390
if page == "" {
391391
page = "1"
392392
}
393-
if TibiaDataStringToIntegerV3(page) < 1 || TibiaDataStringToIntegerV3(page) > 21 {
394-
TibiaDataAPIHandleResponse(c, http.StatusBadRequest, "TibiaHighscoresV3", gin.H{"error": "page needs to be from 1 to 20"})
393+
if TibiaDataStringToIntegerV3(page) < 1 || TibiaDataStringToIntegerV3(page) > 23 {
394+
TibiaDataAPIHandleResponse(c, http.StatusBadRequest, "TibiaHighscoresV3", gin.H{"error": "page needs to be from 1 to 20 (possible until 23)"})
395395
return
396396
}
397397

0 commit comments

Comments
 (0)