Fix Python example

Thanks to Brian Carlson for pointing this out.

Fixes #547
This commit is contained in:
Martin Michlmayr 2018-03-25 10:18:48 +02:00
parent 8d38190409
commit 44a885c522

View file

@ -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