(self, content)
| 34 | return new_comment.comment_info[0].as_dict(user_id) |
| 35 | |
| 36 | def patch(self, content): |
| 37 | if content: |
| 38 | self.content = content |
| 39 | self.is_edited = True |
| 40 | db.session.commit() |
| 41 | |
| 42 | def __init__(self, user_id, content, post_id=None, has_parent=None, parent_id=None): |
| 43 | self.user_id = user_id |