diff --git a/src/pricehist/outputs/ledger.py b/src/pricehist/outputs/ledger.py index cf870b1..eb821b7 100644 --- a/src/pricehist/outputs/ledger.py +++ b/src/pricehist/outputs/ledger.py @@ -4,7 +4,7 @@ class Ledger(): lines = [] for price in prices: date = str(price.date).translate(str.maketrans('-','/')) - lines.append(f"P {price.date} 00:00:00 {price.base} {price.amount} {price.quote}") + lines.append(f"P {date} 00:00:00 {price.base} {price.amount} {price.quote}") return "\n".join(lines) # TODO support additional details of the format: