Skip to content
Snippets Groups Projects
Commit 2bcb8fcf authored by Robert Goldmann's avatar Robert Goldmann
Browse files

don't cache board game json

parent 637a4822
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,7 @@ class BoardGameTile(Tile): ...@@ -31,7 +31,7 @@ class BoardGameTile(Tile):
jsonService = ServiceManager.get_instance().get_service_by_type_name('JsonService') jsonService = ServiceManager.get_instance().get_service_by_type_name('JsonService')
cacheKey = f'{pageName}_{self._uniqueName}_{self._settings["path"]}' cacheKey = f'{pageName}_{self._uniqueName}_{self._settings["path"]}'
games = jsonService.get_data(cacheKey, self._intervalInSeconds, self._settings)['data']['games'] games = jsonService.get_data(cacheKey, 0, self._settings)['data']['games']
games = sorted(games, key=lambda game: game['name']) games = sorted(games, key=lambda game: game['name'])
gamesForTwo = [game for game in games if game['maxPlayers'] == 2 and game['minPlayers'] == 2] gamesForTwo = [game for game in games if game['maxPlayers'] == 2 and game['minPlayers'] == 2]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment