Fix bug causing already imported tasks with recur to be not detected and reimported

This commit is contained in:
Matt Snider 2019-07-13 11:43:25 +02:00
parent b12676ee0e
commit a9ff4b4ff8
1 changed files with 2 additions and 2 deletions

View File

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