Skip to content

Commit 8b25914

Browse files
committed
Project.download's file extension is now corrected to .json instead of .sb3
1 parent 41b3ecc commit 8b25914

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scratchattach/site/project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ def download(self, *, filename=None, dir=""):
250250
f"https://projects.scratch.mit.edu/{self.id}?token={self.project_token}",
251251
timeout=10,
252252
)
253-
filename = filename.replace(".sb3", "")
254-
open(f"{dir}{filename}.sb3", "wb").write(response.content)
253+
filename = filename.replace(".json", "")
254+
open(f"{dir}{filename}.json", "wb").write(response.content)
255255
except Exception:
256256
raise (
257257
exceptions.FetchError(

0 commit comments

Comments
 (0)