diff --git a/renter/price_tracker.go b/renter/price_tracker.go index 1d334f6..dbda7fa 100644 --- a/renter/price_tracker.go +++ b/renter/price_tracker.go @@ -212,7 +212,7 @@ func (p PriceTracker) importPrices() error { existingDateMap[d.Format("2006-01-02")] = true } - for i := 0; i < daysOfHistory; i++ { + for i := 1; i <= daysOfHistory; i++ { currentDate := startDate.AddDate(0, 0, i) dateKey := currentDate.Format("2006-01-02") if _, exists := existingDateMap[dateKey]; !exists {