]> git.rmz.io Git - dotfiles.git/commitdiff
bin/monzo.py: try to add tab to memo if possible
authorSamir Benmendil <me@rmz.io>
Tue, 31 Oct 2023 21:26:30 +0000 (21:26 +0000)
committerSamir Benmendil <me@rmz.io>
Sun, 17 Dec 2023 17:36:18 +0000 (17:36 +0000)
bin/monzo.py

index 693c921fa2587caac102251a7989e770d56ce5c0..6980487aeef81e218ceb584da7f64cafc98f8326 100755 (executable)
@@ -49,6 +49,11 @@ if __name__ == "__main__":
             else:
                 payee = t["merchant"]["name"]
             memo = t["description"]
+            try:
+                memo = "Tab: {}".format(t["tab"]["name"])
+            except KeyError:
+                pass
+
             memo += "\n{local_amount} {local_currency}".format(**t)
             notes = t["notes"]
             if outformat == "csv":