Skip to content

Instantly share code, notes, and snippets.

@Athira2199
Created February 15, 2021 10:16
Show Gist options
  • Save Athira2199/b63fae3dcf8d5e0ed84e6ace1047c3b5 to your computer and use it in GitHub Desktop.
Save Athira2199/b63fae3dcf8d5e0ed84e6ace1047c3b5 to your computer and use it in GitHub Desktop.
#handler for display operations
def show_handler():
todos = todo.find({})
flag = False
print("------------------------TODO----------------------------")
for item in todos:
print('name : ',item["name"],'| description : ',item["description"],'| status',item["status"])
flag = True
if(not flag):
print('You have not added any todo yet !!!!')
print("------------------------THANK YOU----------------------------")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment