This commit is contained in:
Diogo Sousa
2023-02-05 12:08:13 +00:00
committed by jeroen
parent 937b39bd56
commit 91e109afd7

View File

@@ -476,7 +476,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
)