Last active
February 7, 2020 04:24
-
-
Save dev4Fun/af60713166acba3a863f8f8d1f4e26b7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def _compute_comments_to_ignore(self, comments) -> dict: | |
| to_ignore = {} | |
| for comment in comments: | |
| if comment.author and comment.author.name == self.username: | |
| to_ignore[comment.id] = comment | |
| for reply in comment.replies: | |
| if reply.author and reply.author.name == self.username: | |
| to_ignore[reply.id] = reply | |
| return to_ignore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment