You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

set_todo_checked_as_closed.py 176 B

12345
  1. import webnotes
  2. def execute():
  3. webnotes.reload_doc("core", "doctype", "todo")
  4. webnotes.conn.sql("""update tabToDo set status = if(ifnull(checked,0)=0, 'Open', 'Closed')""")