summaryrefslogtreecommitdiff
path: root/doc/ledger3.texi
diff options
context:
space:
mode:
authorMartin Michlmayr <tbm@cyrius.com>2018-03-25 10:18:48 +0200
committerMartin Michlmayr <tbm@cyrius.com>2018-03-25 10:18:48 +0200
commit44a885c5221253ee5809f076ebbe5f17d0c86e7c (patch)
tree09bc33da2c8b2ee471d0f4f296744dfa4febfb26 /doc/ledger3.texi
parent8d38190409a68f2c8da572d33eaaf93a17c0f550 (diff)
downloadfork-ledger-44a885c5221253ee5809f076ebbe5f17d0c86e7c.tar.gz
fork-ledger-44a885c5221253ee5809f076ebbe5f17d0c86e7c.tar.bz2
fork-ledger-44a885c5221253ee5809f076ebbe5f17d0c86e7c.zip
Fix Python example
Thanks to Brian Carlson for pointing this out. Fixes #547
Diffstat (limited to 'doc/ledger3.texi')
-rw-r--r--doc/ledger3.texi2
1 files changed, 1 insertions, 1 deletions
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