mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-06-24 05:35:10 +00:00
Global autoformat
This commit is contained in:
@@ -385,12 +385,12 @@ class LookupHelper:
|
||||
data = self._get_qrz_data_for_callsign(call, credentials)
|
||||
if data and "latitude" in data and "longitude" in data and (
|
||||
float(data["latitude"]) != 0 or float(data["longitude"]) != 0) and -89.9 < float(
|
||||
data["latitude"]) < 89.9:
|
||||
data["latitude"]) < 89.9:
|
||||
return [float(data["latitude"]), float(data["longitude"])]
|
||||
data = self._get_hamqth_data_for_callsign(call, credentials)
|
||||
if data and "latitude" in data and "longitude" in data and (
|
||||
float(data["latitude"]) != 0 or float(data["longitude"]) != 0) and -89.9 < float(
|
||||
data["latitude"]) < 89.9:
|
||||
data["latitude"]) < 89.9:
|
||||
return [float(data["latitude"]), float(data["longitude"])]
|
||||
else:
|
||||
return None
|
||||
@@ -629,6 +629,7 @@ class LookupHelper:
|
||||
# Singleton object
|
||||
lookup_helper = LookupHelper()
|
||||
|
||||
|
||||
def infer_mode_from_comment(comment):
|
||||
"""Infer a mode from the comment"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user