diff options
author | John Wiegley <johnw@newartisans.com> | 2004-09-10 18:38:52 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-09-10 18:38:52 -0400 |
commit | e1d6c4bff27f41fbe57738205ba3548554380a73 (patch) | |
tree | 270da6408bfdbbc10787e6ca1439aa715d7a6fbe /walk.cc | |
parent | e414123ecb472d1f86a2f1cfdbd2732144c20f0d (diff) | |
download | fork-ledger-e1d6c4bff27f41fbe57738205ba3548554380a73.tar.gz fork-ledger-e1d6c4bff27f41fbe57738205ba3548554380a73.tar.bz2 fork-ledger-e1d6c4bff27f41fbe57738205ba3548554380a73.zip |
interval_t objects now play nicely with python. see the bottom of main.py
Diffstat (limited to 'walk.cc')
-rw-r--r-- | walk.cc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -256,10 +256,10 @@ void subtotal_transactions::operator()(transaction_t& xact) void interval_transactions::operator()(transaction_t& xact) { - std::time_t quant = interval.increment(begin); + std::time_t quant = interval.increment(interval.begin); if (std::difftime(xact.entry->date, quant) > 0) { if (last_xact) { - start = begin; + start = interval.begin; finish = quant; flush(); } @@ -279,7 +279,7 @@ void interval_transactions::operator()(transaction_t& xact) while (std::difftime(xact.entry->date, temp = interval.increment(quant)) > 0) quant = temp; - begin = quant; + interval.begin = quant; } subtotal_transactions::operator()(xact); |