From 83c49f96e41f236b929cc2fb57867ef307b9be46 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Fri, 10 Oct 2025 23:16:42 +0200 Subject: [PATCH] fixup! Refactor storages and extractors to actual functions --- routes/data.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/routes/data.go b/routes/data.go index a92c85b..fab1192 100644 --- a/routes/data.go +++ b/routes/data.go @@ -1,3 +1,4 @@ +// Package routes provides data processing functions for EVE PI endpoints. package routes import ( @@ -191,7 +192,7 @@ func FormatStorageAlert(storage StorageInfo, isCritical bool) string { severity = "CRITICAL" } - return fmt.Sprintf("🚨 %s: %s almost full on %s! (%.1f%% utilized)", + return fmt.Sprintf("🚨 %s: %s almost full on %s! (%.1f%% utilized)", severity, storage.StorageType, storage.PlanetName, storage.Utilization) } @@ -207,6 +208,6 @@ func FormatExtractorAlert(extractor ExtractorInfo, isCritical bool) string { status = "expired" } - return fmt.Sprintf("⏰ %s: Extractor #%d %s on %s! (expires: %s)", + return fmt.Sprintf("⏰ %s: Extractor #%d %s on %s! (expires: %s)", severity, extractor.ExtractorNumber, status, extractor.PlanetName, extractor.ExpiryDate) }