From f946a6c59b20874ded6532dbcef9c3c8074019ac Mon Sep 17 00:00:00 2001 From: CubeyTheCube <72284516+CubeyTheCube@users.noreply.github.com> Date: Sat, 13 Nov 2021 19:04:43 -0500 Subject: [PATCH] fix set_bio and set_status --- scratchclient/UserProfile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scratchclient/UserProfile.py b/scratchclient/UserProfile.py index 04738b8..737a17c 100644 --- a/scratchclient/UserProfile.py +++ b/scratchclient/UserProfile.py @@ -16,7 +16,7 @@ def set_bio(self, content): data = {"bio": content} return requests.put( "https://scratch.mit.edu/site-api/users/all/" + self.username + "/", - data=data, + data=json.dumps(data), headers=self.user._headers, ) @@ -24,7 +24,7 @@ def set_status(self, content): data = {"status": content} return requests.put( "https://scratch.mit.edu/site-api/users/all/" + self.username + "/", - data=data, + data=json.dumps(data), headers=self.user._headers, )