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

Method report

scratchattach/site/comment.py:214–228  ·  view source on GitHub ↗

Reports the comment to the Scratch team.

(self)

Source from the content-addressed store, hash-verified

212 return None # raise error?
213
214 def report(self):
215 """
216 Reports the comment to the Scratch team.
217 """
218 self._assert_auth()
219 if self.source == CommentSource.USER_PROFILE:
220 user.User(username=self.source_id, _session=self._session).report_comment(comment_id=self.id)
221
222 elif self.source == CommentSource.PROJECT:
223 p = project.Project(id=self.source_id, _session=self._session)
224 p.update()
225 p.report_comment(comment_id=self.id)
226
227 elif self.source == CommentSource.STUDIO:
228 studio.Studio(id=self.source_id, _session=self._session).report_comment(comment_id=self.id)

Callers

nothing calls this directly

Calls 4

report_commentMethod · 0.95
_assert_authMethod · 0.45
report_commentMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected