mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-12 00:50:40 +00:00
Add notifications on status changes of jobs and corpora
This commit is contained in:
@ -74,7 +74,9 @@ def service(service):
|
||||
db.session.add(job_input)
|
||||
job.status = 'submitted'
|
||||
db.session.commit()
|
||||
flash('Job added!')
|
||||
job_url = url_for('jobs.job', job_id=job.id)
|
||||
flash('<i class="left material-icons">work</i>'
|
||||
'[<a href="{}">{}</a>] added'.format(job_url, job.title))
|
||||
return make_response(
|
||||
{'redirect_url': url_for('jobs.job', job_id=job.id)}, 201)
|
||||
return render_template('services/{}.html.j2'.format(service),
|
||||
|
Reference in New Issue
Block a user