Merge pull request #706 from pierotofy/offbyonefix

Fix console output off-by-one error
pull/707/head
Piero Toffanin 2019-07-21 15:00:59 -04:00 zatwierdzone przez GitHub
commit 0fcdc447f4
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -561,7 +561,10 @@ class Task(models.Model):
# Need to update status (first time, queued or running?)
if self.uuid and self.status in [None, status_codes.QUEUED, status_codes.RUNNING]:
# Update task info from processing node
current_lines_count = len(self.console_output.split("\n"))
if not self.console_output:
current_lines_count = 0
else:
current_lines_count = len(self.console_output.split("\n"))
info = self.processing_node.get_task_info(self.uuid, current_lines_count)

Wyświetl plik

@ -1,6 +1,6 @@
{
"name": "WebODM",
"version": "1.1.1",
"version": "1.1.2",
"description": "Open Source Drone Image Processing",
"main": "index.js",
"scripts": {