From 62976cba1f630bc6560cd2ea5ae2a2fa3082e077 Mon Sep 17 00:00:00 2001 From: Ian Renton Date: Sun, 27 Sep 2026 14:44:17 +0100 Subject: [PATCH] Enable POTA upstream logging as this was previously proved. #95 Improve logging --- providers/spot/pota.py | 3 +-- templates/add-spot.html | 2 +- templates/alerts.html | 2 +- templates/bands.html | 4 ++-- templates/base.html | 10 +++++----- templates/conditions.html | 2 +- templates/map.html | 4 ++-- templates/spots.html | 4 ++-- templates/status.html | 2 +- webserver/handlers/api/addspot.py | 4 ++++ 10 files changed, 20 insertions(+), 17 deletions(-) diff --git a/providers/spot/pota.py b/providers/spot/pota.py index 8c26021..d94bc92 100644 --- a/providers/spot/pota.py +++ b/providers/spot/pota.py @@ -57,9 +57,8 @@ class POTA(HTTPSpotProvider): new_spots.append(spot) return new_spots - # Upstream spotting disabled until properly tested def can_submit_spot(self, activity): - return False # return activity == ActivityName.POTA + return activity == ActivityName.POTA def submit_spot(self, spot, credentials): ref_id = spot.activity_refs[0].id if spot.activity_refs else None diff --git a/templates/add-spot.html b/templates/add-spot.html index 35b8031..b91e695 100644 --- a/templates/add-spot.html +++ b/templates/add-spot.html @@ -130,7 +130,7 @@ const ALLOW_UPSTREAM_SPOTTING = {% raw safe_json_dumps(web_ui_options["allow_upstream_spotting"]) %}; - + diff --git a/templates/alerts.html b/templates/alerts.html index 8616a2c..6112e3a 100644 --- a/templates/alerts.html +++ b/templates/alerts.html @@ -87,7 +87,7 @@ - + diff --git a/templates/bands.html b/templates/bands.html index 1a63844..d568fbd 100644 --- a/templates/bands.html +++ b/templates/bands.html @@ -82,8 +82,8 @@ const BANDS = {% raw safe_json_dumps(options["bands"]) %}; - - + + diff --git a/templates/base.html b/templates/base.html index cc1b96d..d7915f0 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,6 +1,6 @@ {% extends "skeleton.html" %} {% block head_extra %} - + @@ -16,10 +16,10 @@ window.fetchEventSource = fetchEventSource; - - - - + + + + {% end %} {% block body %}
diff --git a/templates/conditions.html b/templates/conditions.html index a5f2b9d..540f93d 100644 --- a/templates/conditions.html +++ b/templates/conditions.html @@ -284,7 +284,7 @@
- + diff --git a/templates/map.html b/templates/map.html index e1adf27..f865064 100644 --- a/templates/map.html +++ b/templates/map.html @@ -115,8 +115,8 @@ const CARTODB_API_KEY = "{{ web_ui_options.get('cartodb_api_key', '') }}"; - - + + diff --git a/templates/spots.html b/templates/spots.html index 95ea600..b6959d4 100644 --- a/templates/spots.html +++ b/templates/spots.html @@ -127,8 +127,8 @@ - - + + diff --git a/templates/status.html b/templates/status.html index 005f30d..0ac0e07 100644 --- a/templates/status.html +++ b/templates/status.html @@ -96,7 +96,7 @@ - +