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

Method target_studio

scratchattach/site/activity.py:370–375  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

368 return None
369
370 def target_studio(self) -> Optional[studio.Studio]:
371 if self.target_id:
372 return self._make_linked_object("id", self.target_id, studio.Studio, exceptions.StudioNotFound)
373 if self.gallery_id:
374 return self._make_linked_object("id", self.gallery_id, studio.Studio, exceptions.StudioNotFound)
375 return None
376
377 def target_user(self) -> Optional[user.User]:
378 if self.username:

Callers 1

targetMethod · 0.95

Calls 1

_make_linked_objectMethod · 0.45

Tested by

no test coverage detected