ledger/tools/sample.py

5 lines
98 B
Python

import ledger
def get_amount(item):
print "I found an amount:", item.amount()
return 123