This commit is contained in:
Diogo Sousa
2023-02-05 12:08:13 +00:00
parent 469f11d39a
commit 2ccc503ddf

View File

@@ -440,7 +440,9 @@ class PortfolioController(BaseController):
"[red]Please first load transactions file using 'load'[/red]"
)
else:
if self.portfolio.set_benchmark(ns_parser.benchmark, ns_parser.full_shares):
if self.portfolio.set_benchmark(
ns_parser.benchmark, ns_parser.full_shares
):
self.benchmark_name = statics.BENCHMARK_CHOICES.get(
ns_parser.benchmark, ns_parser.benchmark
)