undo commit 669181239d
, hide empty (deleted) tasks in ls function instead
This commit is contained in:
parent
5892e80e2e
commit
c08281b83a
@ -30,6 +30,9 @@ def ls(update, context):
|
||||
tasks = db.get_all_user_tasks(update.effective_user)
|
||||
r = ""
|
||||
for task in tasks:
|
||||
if str(task) == "":
|
||||
continue
|
||||
|
||||
if task.done is ('done' in update.message['text']) or ('all' in update.message['text']):
|
||||
r+= f"{task.id} {str(task)}"
|
||||
r+= '\n'
|
||||
|
Reference in New Issue
Block a user