def get_list(list_id): list = List.select().where(List.id == list_id).first() return render_template("list.html", list=list)
def index(): lists = list(List.select()) return render_template("lists.html", lists=lists)