(self)
| 111 | time_created = Column(DateTime, default = datetime.datetime.utcnow) |
| 112 | |
| 113 | def serialize(self): |
| 114 | return { |
| 115 | 'id': self.id, |
| 116 | 'kind': self.kind, |
| 117 | 'description': self.description, |
| 118 | 'error_log': self.error_log, |
| 119 | 'object_type': self.object_type, |
| 120 | 'page_name': self.page_name, |
| 121 | 'input_id': self.input_id, |
| 122 | 'project_id': self.project_id, |
| 123 | 'directory_id': self.directory_id, |
| 124 | 'action_id': self.action_id, |
| 125 | 'workflow_id': self.workflow_id, |
| 126 | 'file_id': self.file_id, |
| 127 | 'task_id': self.task_id, |
| 128 | 'job_id': self.job_id, |
| 129 | 'member_id': self.member_id, |
| 130 | 'report_template_data': self.report_template_data, |
| 131 | 'report_data': self.report_data, |
| 132 | 'time_created': self.time_created.strftime('%Y-%m-%d'), |
| 133 | 'install_fingerprint': self.install_fingerprint, |
| 134 | 'diffgram_version': settings.DIFFGRAM_VERSION_TAG, |
| 135 | 'host_os': settings.DIFFGRAM_HOST_OS, |
| 136 | 'storage_backend': settings.DIFFGRAM_STATIC_STORAGE_PROVIDER, |
| 137 | 'service_name': settings.DIFFGRAM_SERVICE_NAME, |
| 138 | 'extra_metadata': self.extra_metadata |
| 139 | } |
| 140 | |
| 141 | def serialize_for_visit_history(self, session): |
| 142 |
no outgoing calls
no test coverage detected