home · contact · privacy
Fix ledger.py bug.
authorChristian Heller <c.heller@plomlompom.de>
Mon, 27 Nov 2023 17:07:03 +0000 (18:07 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 27 Nov 2023 17:07:03 +0000 (18:07 +0100)
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