Skip to content

Commit b273af5

Browse files
committed
removing upper limit for highscores
rel #209
1 parent 04df775 commit b273af5

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
@@ -394,8 +394,8 @@ func tibiaHighscoresV3(c *gin.Context) {
394394
if page == "" {
395395
page = "1"
396396
}
397-
if TibiaDataStringToIntegerV3(page) < 1 || TibiaDataStringToIntegerV3(page) > 23 {
398-
TibiaDataAPIHandleResponse(c, http.StatusBadRequest, "TibiaHighscoresV3", gin.H{"error": "page needs to be from 1 to 20 (possible until 23)"})
397+
if TibiaDataStringToIntegerV3(page) < 1 {
398+
TibiaDataAPIHandleResponse(c, http.StatusBadRequest, "TibiaHighscoresV3", gin.H{"error": "page needs to be from 1 upwards"})
399399
return
400400
}
401401

0 commit comments

Comments
 (0)