Adjust sounding queries

This commit is contained in:
XANTRONIX 2025-02-25 21:37:58 -05:00
parent 37c5b1f77a
commit 5e615b5d59

View file

@ -131,9 +131,9 @@ class Sounding(DatabaseTable):
xmet_sounding
where
station = :station
and timestamp_released <= :timestamp
and timestamp_observed <= :timestamp
order by
timestamp_released desc
timestamp_observed desc
limit 1
"""
@ -167,10 +167,10 @@ class Sounding(DatabaseTable):
from
xmet_sounding
where
timestamp_released <= :timestamp
timestamp_observed <= :timestamp
order by
distance asc,
timestamp_released desc
timestamp_observed desc
limit 1
""".format(crs=COORD_SYSTEM)