(self)
| 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): |
no outgoing calls
no test coverage detected