(self)
| 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 |