diff --git a/pkg/apis/steam/achievements.go b/pkg/apis/steam/achievements.go index e13d3e9..f2c450c 100644 --- a/pkg/apis/steam/achievements.go +++ b/pkg/apis/steam/achievements.go @@ -155,8 +155,8 @@ func FetchGameAchievements(appID int32) (*float32, *[]Achievement) { return achievements[i].UnlockTime.After(*achievements[j].UnlockTime) }) - if len(achievements) > 20 { - achievements = achievements[:20] + if len(achievements) > 5 { + achievements = achievements[:5] } return &achievementPercentage, &achievements diff --git a/pkg/apis/steam/games.go b/pkg/apis/steam/games.go index 2c5c6ad..9e77061 100644 --- a/pkg/apis/steam/games.go +++ b/pkg/apis/steam/games.go @@ -106,5 +106,5 @@ func FetchRecentlyPlayedGames() []Game { }) } - return games + return games[:3] }