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.
 
 
 
 
 
 

6 line
176 B

  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')""")