Incremented version number, renamed method

pull/617/head
Piero Toffanin 2019-02-07 22:36:15 -05:00
rodzic 8205fcc888
commit 7f52ce040f
2 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -81,10 +81,10 @@ class ProcessingNode(models.Model):
kwargs = dict(indent=4, separators=(',', ": ")) if pretty else dict()
return json.dumps(self.available_options, **kwargs)
def options_list_to_kv(self, options = []):
def options_list_to_dict(self, options = []):
"""
Convers options formatted as a list ([{'name': optionName, 'value': optionValue}, ...])
to a dictionary {optionName: value, ...}
to a dictionary {optionName: optionValue, ...}
:param options: options
:return: dict
"""
@ -111,7 +111,7 @@ class ProcessingNode(models.Model):
api_client = self.api_client()
opts = self.options_list_to_kv(options)
opts = self.options_list_to_dict(options)
task = api_client.create_task(images, opts, name, progress_callback)
return task.uuid
@ -166,7 +166,7 @@ class ProcessingNode(models.Model):
api_client = self.api_client()
task = api_client.get_task(uuid)
return task.restart(self.options_list_to_kv(options))
return task.restart(self.options_list_to_dict(options))
def delete(self, using=None, keep_parents=False):
pnode_id = self.id

Wyświetl plik

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