diff --git a/modules/locationdata.py b/modules/locationdata.py index 254cac1..0573d91 100644 --- a/modules/locationdata.py +++ b/modules/locationdata.py @@ -804,6 +804,7 @@ def checkUSGSEarthQuake(lat=0, lon=0): for event in quake_xml.getElementsByTagName("event"): mag = event.getElementsByTagName("magnitude")[0] mag_value = float(mag.getElementsByTagName("value")[0].childNodes[0].nodeValue) + mag_value = round(mag_value, 1) if mag_value > largest_mag: largest_mag = mag_value # set description text @@ -812,7 +813,7 @@ def checkUSGSEarthQuake(lat=0, lon=0): if quake_count == 0: return NO_ALERTS else: - return f"{quake_count} quakes in last {history} days within {radius}km of you largest was {largest_mag}. {description_text}" + return f"{quake_count} 🫨quakes in last {history} days within {radius}km of you largest was {largest_mag}. {description_text}" howfarDB = {} def distance(lat=0,lon=0,nodeID=0, reset=False):