From 44a885c5221253ee5809f076ebbe5f17d0c86e7c Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Sun, 25 Mar 2018 10:18:48 +0200 Subject: Fix Python example Thanks to Brian Carlson for pointing this out. Fixes #547 --- doc/ledger3.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/ledger3.texi') diff --git a/doc/ledger3.texi b/doc/ledger3.texi index b91a4214..0151f267 100644 --- a/doc/ledger3.texi +++ b/doc/ledger3.texi @@ -9218,7 +9218,7 @@ looking at its @code{xact} member: last_xact = None for post in ledger.read_journal("sample.dat").query(""): if post.xact != last_xact: - for post in post.xact.posts: + for post in post.xact.posts(): print "Transferring %s to/from %s" % (post.amount, post.account) last_xact = post.xact -- cgit v1.2.3