From 5f9c990b2580c41cedaf985169ea1e931536bc6f Mon Sep 17 00:00:00 2001 From: GeoffreyCoulaud Date: Tue, 26 Sep 2023 14:30:39 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixed=20store=20length=20method?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/store.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/store.py b/src/store/store.py index f056db3..9605d5b 100644 --- a/src/store/store.py +++ b/src/store/store.py @@ -60,7 +60,7 @@ class Store: def __len__(self) -> int: """Get the number of games in the store with the `len` builtin""" - return sum(len(source_mapping) for source_mapping in self.source_games) + return sum(len(source_mapping) for source_mapping in self.source_games.values()) def __getitem__(self, game_id: str) -> Game: """Get a game by its id with `store["game_id_goes_here"]`"""