From ce7ec3bc8b8123252f67e1ac696801ace2ba0443 Mon Sep 17 00:00:00 2001 From: Olivier Maury <Olivier.Maury@inrae.fr> Date: Wed, 8 Jan 2025 13:22:28 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20ignorer=20le=2031=20d=C3=A9cembre=20des?= =?UTF-8?q?=20ann=C3=A9es=20bissextiles.=20fixes=20#12?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/schema.functions.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/schema.functions.sql b/sql/schema.functions.sql index 30c5937..e1c3e08 100644 --- a/sql/schema.functions.sql +++ b/sql/schema.functions.sql @@ -19,7 +19,7 @@ FROM %1$s AS s JOIN agrometinfo."indicator" AS i ON i.code=s."indicator" JOIN agrometinfo."period" AS p ON p.id=i."period" AND p.phase=s.phase LEFT JOIN agrometinfo.normalvalue AS n ON n."indicator"=i.id AND n.cell=s.cell AND n.doy = EXTRACT(doy FROM s.enddate) -WHERE s.category ='indicator' +WHERE s.category ='indicator' AND EXTRACT(DOY FROM date) != 366 ORDER BY s.enddate, s.cell , i.id ON CONFLICT ON CONSTRAINT "UK_dailyvalue" DO UPDATE SET computedvalue=EXCLUDED.computedvalue, comparedvalue=EXCLUDED.comparedvalue, created=CURRENT_TIMESTAMP; -- GitLab