From 5728d6b9e3eb18e9686770b5d98c75e4d4d73c74 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sat, 13 Sep 2025 18:25:35 -0700 Subject: [PATCH] Update locationdata.py didnt like this --- modules/locationdata.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/locationdata.py b/modules/locationdata.py index af87243..d9699b0 100644 --- a/modules/locationdata.py +++ b/modules/locationdata.py @@ -812,11 +812,8 @@ def checkUSGSEarthQuake(lat=0, lon=0): if quake_count == 0: return NO_ALERTS else: - if use_metric: - return f"{quake_count} 🫨quakes in last {history} days within {radius} km. Largest: {largest_mag}M\n{description_text}" - else: - radius = round(radius * 0.621371) - return f"{quake_count} 🫨quakes in last {history} days within {radius} mi. Largest: {largest_mag}M\n{description_text}" + return f"{quake_count} 🫨quakes in last {history} days within {radius} km. Largest: {largest_mag}M\n{description_text}" + howfarDB = {} def distance(lat=0,lon=0,nodeID=0, reset=False):