response changes to bring it inline with style

This commit is contained in:
Peter Taylor 2022-05-18 13:53:01 +01:00
parent 8b998e6acd
commit 1b68b596a2

View file

@ -49,7 +49,8 @@ class Library:
f"https://api.itch.io/games/{game_id}",
headers={"Authorization": self.login},
)
self.games.append(Game(json.loads(gsp.text)))
k = json.loads(gsp.text)
self.games.append(Game(k))
def load_games(self, publisher):
"""Load all games by publisher"""
@ -61,7 +62,8 @@ class Library:
f"https://api.itch.io/games/{game_id}",
headers={"Authorization": self.login},
)
self.games.append(Game(json.loads(gsp.text)))
k = json.loads(gsp.text)
self.games.append(Game(k))
def download_library(self, platform=None):
"""Download all games in the library"""