summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/main.py b/main.py
index 4b74307c..1e25b7ed 100644
--- a/main.py
+++ b/main.py
@@ -21,8 +21,11 @@ journal = Journal ()
parse_journal_file (args[0], journal)
class OutputTransaction (TransactionHandler):
+ def __init__ (self):
+ self.formatter = Format ("%D %-20P %N")
+ TransactionHandler.__init__ (self)
def __call__ (self, xact):
- print xact.entry.payee
+ print self.formatter.format(xact)
handler = OutputTransaction()
handler = FilterTransactions (handler, "/Checking/")
@@ -31,6 +34,6 @@ for entry in journal:
for xact in entry:
handler (xact)
-span = Interval ("monthly last year")
+span = Interval ("weekly last month")
for date in span:
print time.strftime ("%c", time.localtime (date))