From 69c979b9672f1efb56d597c077fee94742945029 Mon Sep 17 00:00:00 2001 From: Dusan Vojacek Date: Mon, 27 Apr 2026 19:13:16 +0200 Subject: [PATCH] fix notfications --- .idea/data_source_mapping.xml | 3 +++ db/routines/R__066_fn_site_notifications_context.sql | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.idea/data_source_mapping.xml b/.idea/data_source_mapping.xml index b1447d9..89ec326 100644 --- a/.idea/data_source_mapping.xml +++ b/.idea/data_source_mapping.xml @@ -5,6 +5,9 @@ + + + diff --git a/db/routines/R__066_fn_site_notifications_context.sql b/db/routines/R__066_fn_site_notifications_context.sql index dd1c245..0b98d0d 100644 --- a/db/routines/R__066_fn_site_notifications_context.sql +++ b/db/routines/R__066_fn_site_notifications_context.sql @@ -63,7 +63,8 @@ as $fn$ from ems.vw_site_effective_price v where v.site_id = p_site_id and v.interval_start >= now() - and v.interval_start < now() + interval '48 hours' + -- Python notifikace používají jen ceny v horizontu 6 h (24×15 min slotů). + and v.interval_start < now() + interval '6 hours' ), '[]'::jsonb ),