Commit 497bcc52 authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Fix bug on webserver mode

parent 39ca7258
...@@ -1188,7 +1188,7 @@ class JobManager: ...@@ -1188,7 +1188,7 @@ class JobManager:
print("Old job found without result dir existing: delete it from BDD!") print("Old job found without result dir existing: delete it from BDD!")
for j11 in j1: for j11 in j1:
j11.delete_instance() j11.delete_instance()
if self.target is not None: if self.target is not None or self.backup is not None:
job = Job.create(id_job=self.id_job, email=self.email, batch_type=self.config.batch_system_type, job = Job.create(id_job=self.id_job, email=self.email, batch_type=self.config.batch_system_type,
date_created=datetime.now(), tool=self.tool.name if self.tool is not None else None) date_created=datetime.now(), tool=self.tool.name if self.tool is not None else None)
job.save() job.save()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment