changed notes process to have separate files per note

This commit is contained in:
Paul Wilde 2022-05-04 19:04:21 +01:00
parent 8762d8b465
commit 541635392d

View file

@ -22,8 +22,6 @@ proc readNotes(): seq[Note] =
for note_file in walkDir(note_dir):
try:
var note = Note()
echo note_file[0]
echo note_file[1]
note.id = note_file[1]
note.text = readFile(note_file[1])
notes.add(note)