home
·
contact
·
privacy
projects
/
misc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5a6e562
)
Fix ledger.py bug.
author
Christian Heller
<c.heller@plomlompom.de>
Mon, 27 Nov 2023 17:07:03 +0000
(18:07 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Mon, 27 Nov 2023 17:07:03 +0000
(18:07 +0100)
ledger.py
patch
|
blob
|
history
diff --git
a/ledger.py
b/ledger.py
index b6fe0644074f07566e2a0aabe2d6fab30bdfbf19..3071df69d7f0b0f0595fc1c1db61f85234a188f4 100755
(executable)
--- a/
ledger.py
+++ b/
ledger.py
@@
-354,11
+354,9
@@
class LedgerDB(PlomDB):
def insert_at_date(self, lines, date):
start_at = len(self.real_lines)
def insert_at_date(self, lines, date):
start_at = len(self.real_lines)
- print("DEBUG triggered insert_at_date", date, start_at)
for b in self.bookings:
for b in self.bookings:
- if b.date_string
=
= date:
+ if b.date_string
>
= date:
start_at = b.start_line
start_at = b.start_line
- print("DEBUG setting start_at to", start_at)
break
elif b.date_string > date:
break
break
elif b.date_string > date:
break