mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2026-11-09 08:40:07 +00:00
Change delete execution
This commit is contained in:
1 parent
1152417419
commit
bab479db20
9 files changed
+111
-148
No files matched your search
@@ -46,9 +46,8 @@ def service(service):
|
||||
try:
|
||||
os.makedirs(absolut_dir)
|
||||
except OSError:
|
||||
flash('[OSError] Could not add job!')
|
||||
db.session.delete(job)
|
||||
db.session.commit()
|
||||
flash('[ERROR]: Could not add job!')
|
||||
job.delete()
|
||||
else:
|
||||
for file in add_job_form.files.data:
|
||||
filename = secure_filename(file.filename)
|
||||
|
||||
Reference in new issue
Block a user