don't return empty (deleted) tasks
This commit is contained in:
parent
0db78a6ab7
commit
669181239d
@ -31,6 +31,8 @@ def get_all_user_tasks(user) -> "list of pydo.Task":
|
|||||||
r = []
|
r = []
|
||||||
|
|
||||||
for id, task_str in enumerate(task_list):
|
for id, task_str in enumerate(task_list):
|
||||||
|
if task_str == '':
|
||||||
|
continue
|
||||||
task = pydo.Task(task_str)
|
task = pydo.Task(task_str)
|
||||||
task.id = id
|
task.id = id
|
||||||
r.append(task)
|
r.append(task)
|
||||||
|
Reference in New Issue
Block a user