Skip to content

Commit 7858798

Browse files
authored
fix highscores pages bug (tibiadata#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 tibiadata#209
1 parent 82dd591 commit 7858798

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

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)