From b2537af748eb22b4e6d9c5f5f8184219998408ec Mon Sep 17 00:00:00 2001 From: Ronit Jain Date: Tue, 14 Feb 2023 04:23:51 +0530 Subject: [PATCH] self review --- lean/commands/report.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lean/commands/report.py b/lean/commands/report.py index 1ea52b41..d5eeac3e 100644 --- a/lean/commands/report.py +++ b/lean/commands/report.py @@ -222,6 +222,8 @@ def report(backtest_results: Optional[Path], } } + if pdf: + run_options["commands"].append(f'cp /tmp/report.pdf "/Output/{report_destination.name.replace(".html", ".pdf")}"') if live_results is not None: run_options["mounts"].append(Mount(target="/Lean/Report/bin/Debug/live-data-source-file.json", source=str(live_results),