mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-12 09:00:40 +00:00
Merge notify into daemon
This commit is contained in:
@ -434,6 +434,19 @@ class NotificationEmailData(db.Model):
|
||||
notify_status = db.Column(db.String(16), default=None)
|
||||
creation_date = db.Column(db.DateTime(), default=datetime.utcnow)
|
||||
|
||||
def __repr__(self):
|
||||
'''
|
||||
String representation of the NotificationEmailData. For human readability.
|
||||
'''
|
||||
return '<NotificationData %r>' % self.id # TODO: Why not .format()?
|
||||
|
||||
def to_dict(self):
|
||||
return {'id': self.id,
|
||||
'job_id': self.job_id,
|
||||
'job': self.job,
|
||||
'notify_status': self.notify_status,
|
||||
'creation_date': self.creation_date}
|
||||
|
||||
|
||||
class CorpusFile(db.Model):
|
||||
'''
|
||||
|
Reference in New Issue
Block a user