prepare vrt file in background thread.

This commit is contained in:
Patrick Jentsch committed 2019-11-05 10:32:42 +01:00
1 parent 69387ee183
commit 29183b8763
4 files changed
+23 -16

No files matched your search

+2 -1
View File
@@ -24,7 +24,8 @@ def delete_job(job_id):
if not (job.creator == current_user or current_user.is_administrator()):
abort(403)
delete_thread = threading.Thread(target=background_delete_job,
args=(current_app, job_id))
args=(current_app._get_current_object(),
job_id))
delete_thread.start()
flash('Job has been deleted!')
return redirect(url_for('main.dashboard'))