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

Method serialize

shared/database/action/workflow.py:128–140  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

126 Workflow.project == project).first()
127
128 def serialize(self):
129
130 # Include project id or?
131
132 return {
133 'id': self.id,
134 'string_id': self.string_id,
135 'name': self.name,
136 'trigger_type': self.trigger_type,
137 'time_window': self.time_window,
138 'active': self.active,
139 'time_updated': self.time_updated
140 }
141
142 @staticmethod
143 def get(session, workflow_id: int):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected