hotfix on downloading

This commit is contained in:
Peter Taylor 2022-09-05 14:40:31 +01:00
parent 9568fd01d4
commit d15f20c8f3

View file

@ -18,9 +18,9 @@ class Game:
self.name = self.data["title"]
self.publisher = self.data["user"]["username"]
self.link = self.data["url"]
if "game_id" in self.data:
self.id = self.data["id"]
self.game_id = self.data["game_id"]
if "game_id" in data:
self.id = data["id"]
self.game_id = data["game_id"]
else:
self.id = False
self.game_id = self.data["id"]