From 9ccbd23aa3a09f2bb02a022f8c031864837a09fe Mon Sep 17 00:00:00 2001 From: George Ornbo Date: Wed, 9 Oct 2024 08:57:47 +0100 Subject: [PATCH] Fix incorrect variables n `backtest.NewReport` The variables passed to `backtest.NewReport` are for repository configuration settings causing the script to fail. This correctly sets `reportName` and `reportConfig`. --- cmd/indicator-backtest/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/indicator-backtest/main.go b/cmd/indicator-backtest/main.go index c8242cb..f702bc5 100644 --- a/cmd/indicator-backtest/main.go +++ b/cmd/indicator-backtest/main.go @@ -54,7 +54,7 @@ func main() { os.Exit(1) } - report, err := backtest.NewReport(repositoryName, repositoryConfig) + report, err := backtest.NewReport(reportName, reportConfig) if err != nil { logger.Error("Unable to initialize report.", "error", err) os.Exit(1)