Skip to content

Commit 7858798

Browse files
authored
fix highscores pages bug (#210)
func tibiaHighscores had a hard limit of 30 pages, this hard limit should not be there because there are times where tibia's highscore has more than 30 pages, for example highscore of magiclevel of knights only on Antica. fixes #209
1 parent 82dd591 commit 7858798

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/webserver.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -552,10 +552,6 @@ func tibiaHighscores(c *gin.Context) {
552552
TibiaDataErrorHandler(c, validation.ErrorHighscorePageInvalid, http.StatusBadRequest)
553553
return
554554
}
555-
if TibiaDataStringToInteger(page) > 30 {
556-
TibiaDataErrorHandler(c, validation.ErrorHighscorePageTooBig, http.StatusBadRequest)
557-
return
558-
}
559555

560556
tibiadataRequest := TibiaDataRequestStruct{
561557
Method: resty.MethodGet,

0 commit comments

Comments
 (0)