MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / toggle_commenting

Method toggle_commenting

scratchattach/site/user.py:735–744  ·  view source on GitHub ↗

You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_user`

(self)

Source from the content-addressed store, hash-verified

733 return False
734
735 def toggle_commenting(self):
736 """
737 You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_user`
738 """
739 self._assert_permission()
740 requests.post(
741 f"https://scratch.mit.edu/site-api/comments/user/{self.username}/toggle-comments/",
742 headers=headers,
743 cookies=self._cookies,
744 )
745
746 def viewed_projects(self, limit=24, offset=0):
747 """

Callers

nothing calls this directly

Calls 2

_assert_permissionMethod · 0.95
postMethod · 0.80

Tested by

no test coverage detected