From 9cae3051d19f718edc349101c73eced676652b8e Mon Sep 17 00:00:00 2001 From: Molly Smith Date: Wed, 11 Oct 2023 14:49:31 -0600 Subject: [PATCH] Fixed timeseries averaging in cb-metar --- .../server/dataFunctions/sqlTemplates/tmpl_TimeSeries.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/cb-metar/server/dataFunctions/sqlTemplates/tmpl_TimeSeries.sql b/apps/cb-metar/server/dataFunctions/sqlTemplates/tmpl_TimeSeries.sql index b7aa72f565..299b0e648d 100644 --- a/apps/cb-metar/server/dataFunctions/sqlTemplates/tmpl_TimeSeries.sql +++ b/apps/cb-metar/server/dataFunctions/sqlTemplates/tmpl_TimeSeries.sql @@ -20,5 +20,5 @@ WHERE m0.type = 'DD' AND m0.fcstValidEpoch %(24 * 3600) / 3600 IN [{{vxVALID_TIMES}}] AND m0.fcstValidEpoch >= {{vxFROM_SECS}} AND m0.fcstValidEpoch <= {{vxTO_SECS}} -GROUP BY m0.fcstValidEpoch +GROUP BY {{vxAVERAGE}} ORDER BY avtime;