Extract note writing into function
This commit is contained in:
parent
2db5ce4cac
commit
bc520497f8
1 changed files with 4 additions and 0 deletions
|
@ -80,6 +80,10 @@ def main(fpath, db):
|
||||||
notes[note_file] = []
|
notes[note_file] = []
|
||||||
notes[note_file].append(text)
|
notes[note_file].append(text)
|
||||||
|
|
||||||
|
write_to_files(notes)
|
||||||
|
|
||||||
|
|
||||||
|
def write_to_files(notes):
|
||||||
# write to notes
|
# write to notes
|
||||||
for f, entries in notes.items():
|
for f, entries in notes.items():
|
||||||
if f:
|
if f:
|
||||||
|
|
Loading…
Reference in a new issue