MCPcopy Index your code
hub / github.com/diffgram/diffgram / serialize

Method serialize

shared/database/comment.py:34–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

32 return session.query(Comment).filter(Comment.id == id).first()
33
34 def serialize(self):
35 return {
36 'id' : self.id,
37 'user' : self.user.serialize_for_activity(),
38 'discussion_id' : self.discussion_id,
39 'content' : self.content
40 }

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected