MCPcopy Create free account
hub / github.com/diffgram/diffgram / serialize_with_actions

Method serialize_with_actions

shared/database/action/workflow.py:218–227  ·  view source on GitHub ↗
(self, session)

Source from the content-addressed store, hash-verified

216
217
218 def serialize_with_actions(self, session):
219 data = self.serialize()
220 actions = Action.list(
221 session = session,
222 flow_id = self.id,
223 project_id = self.project_id,
224 limit = None
225 )
226 data['actions_list'] = [a.serialize() for a in actions]
227 return data
228
229 def get_first_action(self, session) -> Action:
230 action = session.query(Action).filter(

Callers 2

workflow_view_apiFunction · 0.80
api_workflow_updateFunction · 0.80

Calls 2

serializeMethod · 0.95
listMethod · 0.45

Tested by

no test coverage detected