From 1c78a8f59338ba152bb82fe1ab97972775bc4b6a Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Tue, 10 Dec 2024 16:59:48 -0800 Subject: [PATCH] Update locationdata.py --- modules/locationdata.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/locationdata.py b/modules/locationdata.py index 4df0c1b..ebfbccf 100644 --- a/modules/locationdata.py +++ b/modules/locationdata.py @@ -323,10 +323,12 @@ def abbreviate_noaa(row): "december": "Dec", "degrees": "°", "percent": "%", + "department": "Dept.", } line = row for key, value in replacements.items(): + # case insensitive replace line = line.replace(key, value).replace(key.capitalize(), value).replace(key.upper(), value) return line