I have a small problem. I am submitting new tasks via API. I use this recipe
options = json.dumps([
{'name': "orthophoto-resolution", 'value': 24}
])
res = requests.post('http://localhost:8000/api/projects/{}/tasks/'.format(project_id),
headers={'Authorization': 'JWT {}'.format(token)},
files=images,
data={
'options': options
}).json()
task_id = res['id']
If I add an option that is a boolean and set it to false, the options are not accepted (True does work!)
For instance:
options = json.dumps([
{'name': "dsm", 'value': False}
])
res = requests.post('http://localhost:8000/api/projects/{}/tasks/'.format(project_id),
headers={'Authorization': 'JWT {}'.format(token)},
files=images,
data={
'options': options
}).json()
task_id = res['id']
Does anyone know what the problem is?