summaryrefslogtreecommitdiffstats
path: root/api/resources/v2/tasks.py
diff options
context:
space:
mode:
Diffstat (limited to 'api/resources/v2/tasks.py')
-rw-r--r--api/resources/v2/tasks.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/api/resources/v2/tasks.py b/api/resources/v2/tasks.py
index 9790d7640..e95ae0550 100644
--- a/api/resources/v2/tasks.py
+++ b/api/resources/v2/tasks.py
@@ -106,7 +106,8 @@ class V2Task(ApiResource):
if project.tasks:
LOG.info('update tasks in project')
- new_task_list = project.tasks.split(',').remove(task_id)
+ new_task_list = project.tasks.split(',')
+ new_task_list.remove(task_id)
if new_task_list:
new_tasks = ','.join(new_task_list)
else: