]> git.rmz.io Git - dotfiles.git/commitdiff
bin: add notes to monzo qif
authorSamir Benmendil <me@rmz.io>
Sun, 9 Feb 2025 14:19:28 +0000 (14:19 +0000)
committerSamir Benmendil <me@rmz.io>
Tue, 11 Feb 2025 14:23:07 +0000 (14:23 +0000)
bin/monzo.py

index 6980487aeef81e218ceb584da7f64cafc98f8326..1335007a92791bc1803a7c64f0d47706029aedb1 100755 (executable)
@@ -56,6 +56,8 @@ if __name__ == "__main__":
 
             memo += "\n{local_amount} {local_currency}".format(**t)
             notes = t["notes"]
+            if notes:
+                memo += "\nNotes: {notes}".format(**t)
             if outformat == "csv":
                 print('{date:%Y-%m-%d},{amount},"{payee}","{description}","{notes}"'.format(date=date,
                                                                                             payee=payee,