From a3332aa02385eb5a6ea93f0aa45fee2f1194edad Mon Sep 17 00:00:00 2001 From: Ian Renton Date: Sat, 11 Apr 2026 08:14:52 +0100 Subject: [PATCH] Fix a parsing bug with NG3K --- alertproviders/ng3k.py | 6 +++--- templates/about.html | 2 +- templates/add_spot.html | 4 ++-- templates/alerts.html | 4 ++-- templates/bands.html | 6 +++--- templates/base.html | 6 +++--- templates/conditions.html | 4 ++-- templates/map.html | 6 +++--- templates/spots.html | 6 +++--- templates/status.html | 4 ++-- 10 files changed, 24 insertions(+), 24 deletions(-) diff --git a/alertproviders/ng3k.py b/alertproviders/ng3k.py index b02b69f..0b1205b 100644 --- a/alertproviders/ng3k.py +++ b/alertproviders/ng3k.py @@ -68,9 +68,9 @@ class NG3K(HTTPAlertProvider): dx_country = parts[1] qsl_info = parts[3] - bands = extra_parts[1] - modes = extra_parts[2] if len(extra_parts) > 3 else "" - comment = extra_parts[-1] + bands = extra_parts[1] if len(extra_parts) > 1 else "" + modes = extra_parts[2] if len(extra_parts) > 2 else "" + comment = extra_parts[3] if len(extra_parts) > 3 else "" # Convert to our alert format alert = Alert(source=self.name, diff --git a/templates/about.html b/templates/about.html index ae00293..a6f3784 100644 --- a/templates/about.html +++ b/templates/about.html @@ -67,7 +67,7 @@

This software is dedicated to the memory of Tom G1PJB, SK, a friend and colleague who sadly passed away around the time I started writing it in Autumn 2025. I was looking forward to showing it to you when it was done.

- + {% end %} \ No newline at end of file diff --git a/templates/add_spot.html b/templates/add_spot.html index bffa442..2e1a543 100644 --- a/templates/add_spot.html +++ b/templates/add_spot.html @@ -69,8 +69,8 @@ - - + + {% end %} \ No newline at end of file diff --git a/templates/alerts.html b/templates/alerts.html index d3d4987..fbbcdd3 100644 --- a/templates/alerts.html +++ b/templates/alerts.html @@ -56,8 +56,8 @@ - - + + {% end %} \ No newline at end of file diff --git a/templates/bands.html b/templates/bands.html index 63b439b..1f4ab08 100644 --- a/templates/bands.html +++ b/templates/bands.html @@ -62,9 +62,9 @@ - - - + + + {% end %} \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index ea75bc5..b2447a4 100644 --- a/templates/base.html +++ b/templates/base.html @@ -46,9 +46,9 @@ crossorigin="anonymous"> - - - + + + diff --git a/templates/conditions.html b/templates/conditions.html index f68b772..e23b2eb 100644 --- a/templates/conditions.html +++ b/templates/conditions.html @@ -230,8 +230,8 @@ - - + + diff --git a/templates/map.html b/templates/map.html index f2ac8fb..de73db3 100644 --- a/templates/map.html +++ b/templates/map.html @@ -79,9 +79,9 @@ - - - + + + {% end %} \ No newline at end of file diff --git a/templates/spots.html b/templates/spots.html index 7396af4..84aee80 100644 --- a/templates/spots.html +++ b/templates/spots.html @@ -90,9 +90,9 @@ - - - + + + {% end %} \ No newline at end of file diff --git a/templates/status.html b/templates/status.html index f86b191..0eaea8e 100644 --- a/templates/status.html +++ b/templates/status.html @@ -59,8 +59,8 @@ - - + +