Allow floating point received_since times

This commit is contained in:
Ian Renton
2026-04-03 15:35:06 +01:00
parent 8d2fcc69b0
commit da7bb4223e
12 changed files with 25 additions and 25 deletions

View File

@@ -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":