Skip to content

Commit cb4dccf

Browse files
authored
fix #533
1 parent b115c96 commit cb4dccf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scratchattach/site/project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def load_description(self):
326326

327327
# -- Project contents (body/json) -- #
328328

329-
def download(self, *, filename=None, dir=""):
329+
def download(self, *, filename=None, dir="."):
330330
"""
331331
Downloads the project json to the given directory.
332332
@@ -338,7 +338,7 @@ def download(self, *, filename=None, dir=""):
338338
if filename is None:
339339
filename = str(self.id)
340340
if not (dir.endswith("/") or dir.endswith("\\")):
341-
dir = dir + "/"
341+
dir += "/"
342342
self.update()
343343
response = requests.get(
344344
f"https://projects.scratch.mit.edu/{self.id}?token={self.project_token}",

0 commit comments

Comments
 (0)