From 9ce7fa2d262de43706e79c18c34a8be8c54465e1 Mon Sep 17 00:00:00 2001 From: Matt Gleich Date: Sat, 27 Jul 2024 21:26:48 -0400 Subject: [PATCH] feat: store most recent 20 games for website testing Signed-off-by: Matt Gleich --- pkg/apis/steam/games.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/apis/steam/games.go b/pkg/apis/steam/games.go index ce77362..2c5c6ad 100644 --- a/pkg/apis/steam/games.go +++ b/pkg/apis/steam/games.go @@ -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 {