From a7a4ad06e360b01cc91d566adbd64d1fa355f3d8 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 5 Aug 2024 15:54:51 +0200 Subject: [PATCH] Consider 49 IMP and -49 IMP to be the respective awards This matches Stratz's website behaviour. --- src/services/brooch/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/services/brooch/mod.rs b/src/services/brooch/mod.rs index 6bf09529..111dc741 100644 --- a/src/services/brooch/mod.rs +++ b/src/services/brooch/mod.rs @@ -538,12 +538,12 @@ impl BroochService { log::trace!("Emojifying IMP..."); match imp { - Short::MIN..=-50 => "🟧", - -49..=-25 => "🔶", + Short::MIN..=-49 => "🟧", + -48..=-25 => "🔶", -24..=-1 => "🔸", 0..=24 => "🔹", - 25..=49 => "🔷️", - 50..=Short::MAX => "🟦", + 25..=48 => "🔷️", + 49..=Short::MAX => "🟦", } }