Support location lookup for LLOTA #97

This commit is contained in:
Ian Renton
2026-01-16 21:57:54 +00:00
parent 5ce5e98fda
commit 292aaa36ad
4 changed files with 16 additions and 10 deletions

View File

@@ -21,8 +21,8 @@ class LLOTA(HTTPSpotProvider):
comment = None
spotter = None
if "history" in source_spot and len(source_spot["history"]) > 0:
comment = source_spot["history"][0]["comment"]
spotter = source_spot["history"][0]["spotter_callsign"]
comment = source_spot["history"][-1]["comment"]
spotter = source_spot["history"][-1]["spotter_callsign"]
# Convert to our spot format
spot = Spot(source=self.name,
source_id=source_spot["id"],