Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/TibiaHighscoresV3.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ func TibiaHighscoresV3(c *gin.Context) {
// Creating empty HighscoreData var
var HighscoreData []Highscore
var HighscoreDataVocation, HighscoreDataWorld, HighscoreDataTitle string
var HighscoreDataRank, HighscoreDataLevel, HighscoreDataValue int
var HighscoreAge int = 0
var HighscoreDataRank, HighscoreDataLevel, HighscoreDataValue, HighscoreAge int

// getting age of data
regex1 := regexp.MustCompile(`.*<div class="Text">Highscores.*Last Update: ([0-9]+) minutes ago.*`)
Expand Down
4 changes: 2 additions & 2 deletions src/webserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func main() {
router := gin.Default()

// disable proxy feature of gin
router.SetTrustedProxies(nil)
_ = router.SetTrustedProxies(nil)

// Ping-endpoint
router.GET("/ping", func(c *gin.Context) {
Expand Down Expand Up @@ -146,7 +146,7 @@ func main() {
})

// Start the router
router.Run() // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080")
_ = router.Run() // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080")
}

// TibiaDataInitializer func - init things at beginning
Expand Down