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

Method serialize_public

shared/database/user.py:271–284  ·  view source on GitHub ↗
(self, session)

Source from the content-addressed store, hash-verified

269 }
270
271 def serialize_public(self, session):
272 # Careful, **PUBLIC** info
273 project_list = []
274 for project in self.projects:
275 if project.is_public is True:
276 project_list.append(project.serialize_public(session))
277
278 user = {
279 'first_name': self.first_name,
280 'last_name': self.last_name,
281 'profile_image_url': self.profile_image_url,
282 'project_list': project_list
283 }
284 return user
285
286 def build_followers_list(self):
287 user_list = []

Callers 2

project_viewFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected