From 7ee08e2fcdd1afad23f2223ef4f3bf86d49eea15 Mon Sep 17 00:00:00 2001
From: Ian Renton
Date: Sat, 25 Jul 2026 15:06:19 +0100
Subject: [PATCH] Bug fixes and map page banner
---
core/lookup_helper.py | 18 ++++++++++++------
templates/about.html | 11 ++++++++++-
templates/add_spot.html | 2 +-
templates/alerts.html | 2 +-
templates/bands.html | 4 ++--
templates/base.html | 10 +++++-----
templates/conditions.html | 2 +-
templates/map.html | 17 +++++++++++++++--
templates/spots.html | 4 ++--
templates/status.html | 2 +-
webassets/js/map.js | 14 ++++++++++++--
11 files changed, 62 insertions(+), 24 deletions(-)
diff --git a/core/lookup_helper.py b/core/lookup_helper.py
index 598972e..a2a4fd8 100644
--- a/core/lookup_helper.py
+++ b/core/lookup_helper.py
@@ -502,9 +502,12 @@ class LookupHelper:
# Try the call as given, then fall back to the base call (strips /P, /M etc.)
calls_to_try = [call]
- home_call = callinfo.Callinfo.get_homecall(call)
- if home_call != call:
- calls_to_try.append(home_call)
+ try:
+ home_call = callinfo.Callinfo.get_homecall(call)
+ if home_call != call:
+ calls_to_try.append(home_call)
+ except ValueError:
+ logging.debug("Could not look up home call for callsign %s", call)
for lookup_call in calls_to_try:
try:
@@ -574,9 +577,12 @@ class LookupHelper:
# Try the call as given, then fall back to the base call (strips /P, /M etc.)
calls_to_try = [call]
- home_call = callinfo.Callinfo.get_homecall(call)
- if home_call != call:
- calls_to_try.append(home_call)
+ try:
+ home_call = callinfo.Callinfo.get_homecall(call)
+ if home_call != call:
+ calls_to_try.append(home_call)
+ except ValueError:
+ logging.debug("Could not look up home call for callsign %s", call)
for lookup_call in calls_to_try:
try:
diff --git a/templates/about.html b/templates/about.html
index 5982461..bbeda55 100644
--- a/templates/about.html
+++ b/templates/about.html
@@ -159,13 +159,22 @@
modify it however you like, you can claim you wrote it and charge people £1000 for a copy, I don't really mind.
(Please don't do the last one. But if you're using my code for something cool, it would be nice to hear from
you!)
-
Data Accuracy
+
Data Accuracy
Please note that the data coming out of Spothole is only as good as the data going in. People mis-hear and make
typos when spotting callsigns all the time. There are also plenty of cases where Spothole's data, particularly
location data, may be inaccurate. For example, there are POTA parks that span multiple US states, countries that
span multiple CQ zones, portable operators with no requirement to sign /P, etc. If you are doing something where
accuracy is important, such as contesting, you should not rely on Spothole's data to fill in any gaps in your
log.
+
In the Spothole user interface, under "Your Data", you can enter your credentials for QRZ.com and/or HamQTH if
+ you have them. This allows Spothole to augment its data with lookups from these services. See the following
+ section, Privacy, for details of how these are handled. If you are looking at the map and see lots of spots in
+ the geographic centre of countries, allowing these lookups will help. For QRZ.com a paid account is required to
+ look up operator locations.
+
IOTA in particular causes a mapping problem, firstly that there is no official set of geodata beyond the names of
+ islands. We also have no way of telling whether priority should be given to IOTA reference or e.g. QRZ lookup,
+ for example for a G callsign in EU-005 Great Britain the QRZ home address is probably more accurate, but in
+ EU-002 Aaland islands, it's more likely a DXpedition and the IOTA would be more accurate.
Privacy
Spothole collects no data about you on a permanent basis. All spots and alerts are "timed out" and deleted from
the system after a set interval, which by default is one hour for spots and one week for alerts.
+ Spothole's map Spothole pulls in location data from
+ a number of sources to try and provide the best map possible. However, please don't trust them to be anything
+ other than a rough guide. In particular, if you are seeing lots of spots in the centre of a country, please
+ consider opening the "Your Data" menu and providing QRZ.com and/or HamQTH credentials so that Spothole can find
+ more accurate locations for these spots. More information can be found in the
+ Data Accuracy section of the About page.
+
+