Fix subtasks autodetection for single-package tasks

This commit is contained in:
Ivan A. Melnikov 2023-10-04 15:58:52 +04:00
parent 158cd9dbda
commit 691a5cb807

View File

@ -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)