From: Samir Benmendil Date: Tue, 31 Oct 2023 21:26:30 +0000 (+0000) Subject: bin/monzo.py: try to add tab to memo if possible X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/a84768cbce6bac2edbb16f06f60cfa3354f25df5?ds=sidebyside bin/monzo.py: try to add tab to memo if possible --- diff --git a/bin/monzo.py b/bin/monzo.py index 693c921..6980487 100755 --- a/bin/monzo.py +++ b/bin/monzo.py @@ -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":