From: Christian Heller Date: Mon, 27 Nov 2023 17:07:03 +0000 (+0100) Subject: Fix ledger.py bug. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/do_todos?a=commitdiff_plain;h=7c77bd5fe82ff15e0e9c6a808ff7eb5a6d859301;p=misc Fix ledger.py bug. --- diff --git a/ledger.py b/ledger.py index b6fe064..3071df6 100755 --- 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) - print("DEBUG triggered insert_at_date", date, start_at) for b in self.bookings: - if b.date_string == date: + if b.date_string >= date: start_at = b.start_line - print("DEBUG setting start_at to", start_at) break elif b.date_string > date: break