From a9ff4b4ff85740e50f15e918b423c8b244372f84 Mon Sep 17 00:00:00 2001 From: Matt Snider Date: Sat, 13 Jul 2019 11:43:25 +0200 Subject: [PATCH] Fix bug causing already imported tasks with recur to be not detected and reimported --- todoist_taskwarrior/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/todoist_taskwarrior/cli.py b/todoist_taskwarrior/cli.py index 851fb71..a4b96c0 100644 --- a/todoist_taskwarrior/cli.py +++ b/todoist_taskwarrior/cli.py @@ -155,8 +155,8 @@ def migrate(ctx, interactive, sync, map_project, map_tag): def check_task_exists(tid): """ Given a Taskwarrior ID, check if the task exists """ - taskwarrior_id, _ = taskwarrior.get_task(todoist_id=tid) - return taskwarrior_id is not None + _, task = taskwarrior.get_task(todoist_id=tid) + return bool(task) def add_task(tid, name, project, tags, priority, entry, due, recur):