示例#1
0
文件: web.py 项目: arsentur/demo
def change():
    notes = []
    for n, note in enumerate(DB.open_file()):
        if len(note):
            notes.append((n, note))

    return render_template('change.html', notes=notes)
示例#2
0
文件: web.py 项目: arsentur/demo
def read():
    my_notes = []
    for n, note in enumerate(DB.open_file()):
        if len(note):
            my_notes.append((n, note))

    return render_template('index.html', notes=my_notes)