MCPcopy Create free account
hub / github.com/StarKhan6368/threaddit / patch

Method patch

backend/threaddit/comments/models.py:36–40  ·  view source on GitHub ↗
(self, content)

Source from the content-addressed store, hash-verified

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

Callers 1

update_commentFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected