Skip to content

Commit

Permalink
feat: store 10 most recent games
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Gleich <[email protected]>
  • Loading branch information
gleich committed Jul 28, 2024
1 parent 26fe1f8 commit 84af2fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/steam/games.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func FetchRecentlyPlayedGames() []Game {
sort.Slice(ownedGames.Response.Games, func(i, j int) bool {
return ownedGames.Response.Games[i].RTimeLastPlayed > ownedGames.Response.Games[j].RTimeLastPlayed
})
ownedGames.Response.Games = ownedGames.Response.Games[:3]
ownedGames.Response.Games = ownedGames.Response.Games[:10]

var games []Game
for _, g := range ownedGames.Response.Games {
Expand Down

0 comments on commit 84af2fc

Please sign in to comment.