Skip to content

Commit

Permalink
feat: store most recent 20 games for website testing
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 3f4a6bf commit 9ce7fa2
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[:20]

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

0 comments on commit 9ce7fa2

Please sign in to comment.