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

Method upload_json_from

scratchattach/site/project.py:404–410  ·  view source on GitHub ↗

Uploads the project json from the project with the given id to the project represented by this Project object

(self, project_id: int | str)

Source from the content-addressed store, hash-verified

402 ).json()
403
404 def upload_json_from(self, project_id: int | str):
405 """
406 Uploads the project json from the project with the given id to the project represented by this Project object
407 """
408 self._assert_auth()
409 other_project = self._session.connect_project(project_id) # type: ignore
410 self.set_json(other_project.raw_json())
411
412 # -- other -- #
413

Callers

nothing calls this directly

Calls 4

set_jsonMethod · 0.95
connect_projectMethod · 0.80
raw_jsonMethod · 0.80
_assert_authMethod · 0.45

Tested by

no test coverage detected