From 9e8ab1a923409e606f132ac5a10959a47ac39694 Mon Sep 17 00:00:00 2001 From: Cizz22 Date: Mon, 8 Sep 2025 14:50:58 +0700 Subject: [PATCH] fix mttr --- src/aeros_equipment/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aeros_equipment/service.py b/src/aeros_equipment/service.py index 29bd4c8..cccf323 100644 --- a/src/aeros_equipment/service.py +++ b/src/aeros_equipment/service.py @@ -265,7 +265,7 @@ def get_asset_batch(location_tags: List[str], nr_location_tags: List[str], mttr = item["mttr"] distribution, reldisp1, reldisp2 = get_distribution(item) - results[location_tag]["cmDisP1"] = mttr if mttr > 0 else 0 + results[location_tag]["cmDisP1"] = 1 if mttr > 0 else 0 results[location_tag]["relDisType"] = distribution results[location_tag]["relDisP1"] = reldisp1 results[location_tag]["relDisP2"] = reldisp2