In the quality report, add units of measure for maintenance effectivness indicators

This commit is contained in:
Marco Castelluccio 2023-10-18 14:46:46 +02:00
Родитель ed91a3a3dd
Коммит c32f0cea6a
1 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -1787,9 +1787,12 @@ List of revisions that have been waiting for a review for longer than 3 days:
def format_maintenance_effectiveness(period: relativedelta) -> str:
me = calculate_maintenance_effectiveness(period)
return ", ".join(
f"{factor}: {round(value, 2) if value != math.inf else value}"
for factor, value in me.items()
return "ME: {}%, BDTime: {} y, WBDTime: {} y, Incoming vs total open: {} %, Closed vs total open: {} %".format(
me["ME"],
me["BDTime"],
me["WBDTime"],
me["Incoming vs total open"],
me["Closed vs total open"],
)
maintenance_effectiveness_section = f"""<b>MAINTENANCE EFFECTIVENESS</b>