diff --git a/server/handlers/api/alerts.py b/server/handlers/api/alerts.py index cd1dfd2..2f336bf 100644 --- a/server/handlers/api/alerts.py +++ b/server/handlers/api/alerts.py @@ -147,7 +147,7 @@ def alert_allowed_by_query(alert, query): for k in query.keys(): match k: case "received_since": - since = datetime.fromtimestamp(int(query.get(k)), pytz.UTC) + since = datetime.fromtimestamp(float(query.get(k)), pytz.UTC) if not alert.received_time or alert.received_time <= since: return False case "max_duration": diff --git a/server/handlers/api/spots.py b/server/handlers/api/spots.py index 75f2387..b3579bf 100644 --- a/server/handlers/api/spots.py +++ b/server/handlers/api/spots.py @@ -178,7 +178,7 @@ def spot_allowed_by_query(spot, query): if not spot.time or spot.time <= since: return False case "received_since": - since = datetime.fromtimestamp(int(query.get(k)), pytz.UTC).timestamp() + since = datetime.fromtimestamp(float(query.get(k)), pytz.UTC).timestamp() if not spot.received_time or spot.received_time <= since: return False case "source": diff --git a/templates/about.html b/templates/about.html index 75e5ed2..e10cfe9 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 a900cf0..6b2a6fc 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 30bb7e4..8a73bde 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 15020dc..de1c047 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 3d5b1a6..79c88ba 100644 --- a/templates/base.html +++ b/templates/base.html @@ -46,10 +46,10 @@ crossorigin="anonymous"> - - - - + + + + diff --git a/templates/conditions.html b/templates/conditions.html index 8ca8ae5..3980d60 100644 --- a/templates/conditions.html +++ b/templates/conditions.html @@ -189,8 +189,8 @@ - - + + {% end %} \ No newline at end of file diff --git a/templates/map.html b/templates/map.html index 816a616..a1a959e 100644 --- a/templates/map.html +++ b/templates/map.html @@ -70,9 +70,9 @@ - - - + + + {% end %} \ No newline at end of file diff --git a/templates/spots.html b/templates/spots.html index 6b8ebca..4f0e3b2 100644 --- a/templates/spots.html +++ b/templates/spots.html @@ -87,9 +87,9 @@ - - - + + + {% end %} \ No newline at end of file diff --git a/templates/status.html b/templates/status.html index 4601180..17837e2 100644 --- a/templates/status.html +++ b/templates/status.html @@ -59,8 +59,8 @@ - - + + diff --git a/webassets/apidocs/openapi.yml b/webassets/apidocs/openapi.yml index bc0c963..f31bf59 100644 --- a/webassets/apidocs/openapi.yml +++ b/webassets/apidocs/openapi.yml @@ -294,7 +294,7 @@ paths: description: Limit the alerts to only ones that the system found out about at this time or later. Time in UTC seconds since UNIX epoch. If you are using a front-end that tracks the last time it queried the API and requests alerts since then, you want *this* version of the query parameter, not "since", because otherwise it may miss things. The logic is "greater than" rather than "greater than or equal to", so you can submit the time of the last received item back to this call and you will get all the more recent alerts back, without duplicating the previous latest spot. required: false schema: - type: integer + type: number - name: max_duration in: query description: Limit the alerts to only ones with a duration of this many seconds or less. Duration is end time minus start time, if end time is set, otherwise the activation is assumed to be short and therefore to always pass this check. This is useful to filter out people who alert POTA activations lasting months or even years, but note it will also include multi-day or multi-week DXpeditions that you might otherwise be interested in. See the dxpeditions_skip_max_duration_check parameter for the workaround.