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

Method check

scratchattach/site/user.py:66–77  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

64 self.username = user.username
65
66 def check(self) -> bool:
67 return bool(
68 list(
69 filter(
70 lambda x: (
71 x.author_name == self.username
72 and (x.content == self.code or x.content.startswith(self.code) or x.content.endswith(self.code))
73 ),
74 self.project.comments(),
75 )
76 )
77 )
78
79
80@dataclass

Callers

nothing calls this directly

Calls 2

filterFunction · 0.85
commentsMethod · 0.45

Tested by

no test coverage detected