Skip to content

Commit

Permalink
Use correct parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
vibhavp committed Jan 22, 2016
1 parent 834d7da commit fede6c3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions steam.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ func GetTF2Hours(steamid string) (int, error) {
}
return 0, err
}

return GetTF2HoursFromGamesOwned(games), nil
}

Expand All @@ -224,7 +223,7 @@ func GetTF2HoursFromGamesOwned(res *map[string]string) int {

func GetSteamGamesOwned(steamid string) (*map[string]string, error) {
url := "http://api.steampowered.com/IPlayerService/GetOwnedGames/v0001/?key=" +
steamApiKey + "&steamid=" + steamid + "&include_played_free_games=true&format=json1"
steamApiKey + "&steamid=" + steamid + "&include_played_free_games=1&format=json1"

response, err := getJsonFromUrl(url)

Expand Down

0 comments on commit fede6c3

Please sign in to comment.