Пример #1
0
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
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)