From bc520497f81745fe6b752fcc52d613ab8d7d431a Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 21 Feb 2023 14:48:21 +0100 Subject: [PATCH] Extract note writing into function --- papis-marvin | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/papis-marvin b/papis-marvin index 6d7545b..f873a3c 100755 --- a/papis-marvin +++ b/papis-marvin @@ -80,6 +80,10 @@ def main(fpath, db): notes[note_file] = [] notes[note_file].append(text) + write_to_files(notes) + + +def write_to_files(notes): # write to notes for f, entries in notes.items(): if f: