mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 10:34:17 +00:00
Add new values to to_dict methods
This commit is contained in:
parent
83f1aa1a6b
commit
810388b78b
@ -274,6 +274,7 @@ class JobInput(db.Model):
|
|||||||
|
|
||||||
def to_dict(self):
|
def to_dict(self):
|
||||||
return {'id': self.id,
|
return {'id': self.id,
|
||||||
|
'dir': self.dir,
|
||||||
'filename': self.filename,
|
'filename': self.filename,
|
||||||
'job_id': self.job_id,
|
'job_id': self.job_id,
|
||||||
'results': [result.to_dict() for result in self.results]}
|
'results': [result.to_dict() for result in self.results]}
|
||||||
@ -299,8 +300,10 @@ class JobResult(db.Model):
|
|||||||
|
|
||||||
def to_dict(self):
|
def to_dict(self):
|
||||||
return {'id': self.id,
|
return {'id': self.id,
|
||||||
|
'dir': self.dir,
|
||||||
'filename': self.filename,
|
'filename': self.filename,
|
||||||
'job_id': self.job_id}
|
'job_id': self.job_id,
|
||||||
|
'job_input_id': self.job_input_id}
|
||||||
|
|
||||||
|
|
||||||
class Job(db.Model):
|
class Job(db.Model):
|
||||||
|
Loading…
Reference in New Issue
Block a user