running progress logic fix

pull/670/head
Piero Toffanin 2019-06-05 13:51:30 -04:00
rodzic 8408ccbecd
commit 94a41a3a02
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -572,8 +572,8 @@ class Task(models.Model):
if len(info.output) > 0:
self.console_output += "\n".join(info.output) + '\n'
# Update running progress
self.running_progress = (info.progress / 100.0) * self.TASK_PROGRESS_LAST_VALUE
# Update running progress
self.running_progress = (info.progress / 100.0) * self.TASK_PROGRESS_LAST_VALUE
if info.last_error != "":
self.last_error = info.last_error