From 3b575de36a3aad9e66f252a62767a5b53d206f29 Mon Sep 17 00:00:00 2001 From: Ian Renton Date: Thu, 10 Sep 2026 17:58:02 +0100 Subject: [PATCH] Fix SSE timeout --- providers/spot/sse_spot_provider.py | 2 +- 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 +- 9 files changed, 16 insertions(+), 16 deletions(-) diff --git a/providers/spot/sse_spot_provider.py b/providers/spot/sse_spot_provider.py index cd883d0..1b3f93b 100644 --- a/providers/spot/sse_spot_provider.py +++ b/providers/spot/sse_spot_provider.py @@ -65,7 +65,7 @@ class SSESpotProvider(SpotProvider): self._url, headers=HTTP_HEADERS, latest_event_id=self._last_event_id, - timeout=10, + timeout=30, on_open=self._on_open, on_error=self._on_error, ) as event_source: diff --git a/templates/add_spot.html b/templates/add_spot.html index b0312f5..66824c6 100644 --- a/templates/add_spot.html +++ b/templates/add_spot.html @@ -77,7 +77,7 @@ - + diff --git a/templates/alerts.html b/templates/alerts.html index 99c0a30..e3bd50d 100644 --- a/templates/alerts.html +++ b/templates/alerts.html @@ -83,7 +83,7 @@ - + diff --git a/templates/bands.html b/templates/bands.html index 9fa229b..dbca34b 100644 --- a/templates/bands.html +++ b/templates/bands.html @@ -76,8 +76,8 @@ - - + + diff --git a/templates/base.html b/templates/base.html index d107aa7..af3fd66 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 91d4ccf..4a79176 100644 --- a/templates/conditions.html +++ b/templates/conditions.html @@ -284,7 +284,7 @@
- + diff --git a/templates/map.html b/templates/map.html index 452a8ec..fc7dd32 100644 --- a/templates/map.html +++ b/templates/map.html @@ -113,8 +113,8 @@ const CARTODB_API_KEY = "{{ web_ui_options.get('cartodb_api_key', '') }}"; - - + + diff --git a/templates/spots.html b/templates/spots.html index 4888cdd..d2b06ba 100644 --- a/templates/spots.html +++ b/templates/spots.html @@ -113,8 +113,8 @@ - - + + diff --git a/templates/status.html b/templates/status.html index f7c198c..24d6f51 100644 --- a/templates/status.html +++ b/templates/status.html @@ -86,7 +86,7 @@ - +