Fix subtasks autodetection for single-package tasks
This commit is contained in:
parent
158cd9dbda
commit
691a5cb807
@ -124,7 +124,7 @@ def grab_task(base_url, task_id, subtasks):
|
||||
else:
|
||||
if not subtasks:
|
||||
if len(info['subtasks']) == 1:
|
||||
subtasks = info['subtasks'].next()
|
||||
subtasks = list(info['subtasks'])
|
||||
else:
|
||||
raise RuntimeError('Please specify subtasks')
|
||||
to_update = (format_subtask(info['subtasks'][stid], True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user