diff --git a/app/models.py b/app/models.py index 2c993f21..fbff582d 100644 --- a/app/models.py +++ b/app/models.py @@ -274,6 +274,7 @@ class JobInput(db.Model): def to_dict(self): return {'id': self.id, + 'dir': self.dir, 'filename': self.filename, 'job_id': self.job_id, 'results': [result.to_dict() for result in self.results]} @@ -299,8 +300,10 @@ class JobResult(db.Model): def to_dict(self): return {'id': self.id, + 'dir': self.dir, 'filename': self.filename, - 'job_id': self.job_id} + 'job_id': self.job_id, + 'job_input_id': self.job_input_id} class Job(db.Model):