Skip to content

Commit

Permalink
fix set_bio and set_status
Browse files Browse the repository at this point in the history
  • Loading branch information
CubeyTheCube authored Nov 14, 2021
1 parent 1b42323 commit f946a6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scratchclient/UserProfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ 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,
)

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,
)

Expand Down

0 comments on commit f946a6c

Please sign in to comment.