Skip to content

Commit 9bf22bc

Browse files
committed
Fix string formatting
1 parent 24130c0 commit 9bf22bc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

investing_algorithm_framework/app/reporting/tables/time_metrics_table.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ def create_html_time_metrics_table(results, report):
2020
if isinstance(copy_results['best_month'], tuple):
2121
percentage = copy_results['best_month'][0]
2222
date = copy_results['best_month'][1]
23-
copy_results['Best Month'] = f"{safe_format_percentage(
24-
percentage, '{:.2f}'
25-
)}% {safe_format_date(date, '%b %Y')}"
23+
copy_results['Best Month'] = f"{safe_format_percentage(percentage, string_format)}% {safe_format_date(date, '%b %Y')}"
2624

2725
if isinstance(copy_results['worst_month'], tuple):
2826
percentage = copy_results['worst_month'][0]

0 commit comments

Comments
 (0)