def delete_by_id(id): a = Todo.select().where(Todo.id==id) a.delete_instance()
def select_all(): # todo select all # return [x for x in Todo.select()] return Todo.select()