From d15f20c8f3de71f0dceb09c4d0fd9ca27f220977 Mon Sep 17 00:00:00 2001 From: Peter Taylor Date: Mon, 5 Sep 2022 14:40:31 +0100 Subject: [PATCH] hotfix on downloading --- itchiodl/game.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/itchiodl/game.py b/itchiodl/game.py index c080354..1f904b2 100644 --- a/itchiodl/game.py +++ b/itchiodl/game.py @@ -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"]