mirror of
https://github.com/Emersont1/itchio.git
synced 2026-03-11 08:54:39 +00:00
PR #78 address second comment
This commit is contained in:
parent
82cda72abd
commit
b4d4a0e9a4
1 changed files with 2 additions and 2 deletions
|
|
@ -67,8 +67,8 @@ class Game:
|
|||
# This converts a null j.uploads into an empty dictionary and uses the safer .get accessor
|
||||
if "uploads" in j:
|
||||
j.update({"uploads": []})
|
||||
for uploads in j.get("uploads"):
|
||||
self.downloads.append(uploads)
|
||||
for uploads in j["uploads"]:
|
||||
self.downloads.append(uploads)
|
||||
|
||||
def download(self, token, platform):
|
||||
"""Download a singular file"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue