mirror of
https://git.webmeisterei.com/webmeisterei/todoist-taskwarrior.git
synced 2025-08-15 03:42:27 +02:00
Fix bug causing already imported tasks with recur to be not detected and reimported
This commit is contained in:
@@ -155,8 +155,8 @@ def migrate(ctx, interactive, sync, map_project, map_tag):
|
|||||||
|
|
||||||
def check_task_exists(tid):
|
def check_task_exists(tid):
|
||||||
""" Given a Taskwarrior ID, check if the task exists """
|
""" Given a Taskwarrior ID, check if the task exists """
|
||||||
taskwarrior_id, _ = taskwarrior.get_task(todoist_id=tid)
|
_, task = taskwarrior.get_task(todoist_id=tid)
|
||||||
return taskwarrior_id is not None
|
return bool(task)
|
||||||
|
|
||||||
|
|
||||||
def add_task(tid, name, project, tags, priority, entry, due, recur):
|
def add_task(tid, name, project, tags, priority, entry, due, recur):
|
||||||
|
Reference in New Issue
Block a user