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

Method __init__

scratchattach/site/user.py:60–64  ·  view source on GitHub ↗
(self, user: User, project_id: int)

Source from the content-addressed store, hash-verified

58
59class Verificator:
60 def __init__(self, user: User, project_id: int):
61 self.project = user._make_linked_object("id", project_id, project.Project, exceptions.ProjectNotFound)
62 self.projecturl = self.project.url
63 self.code = "".join(random.choices(string.ascii_letters + string.digits, k=8))
64 self.username = user.username
65
66 def check(self) -> bool:
67 return bool(

Callers

nothing calls this directly

Calls 1

_make_linked_objectMethod · 0.45

Tested by

no test coverage detected