FIX RYCHLOST EKONOMIKA
Some checks failed
CI and deploy / migration-check (push) Failing after 10s
CI and deploy / deploy (push) Has been skipped

This commit is contained in:
Dusan Vojacek
2026-04-27 19:47:18 +02:00
parent c52946a4ce
commit 8114ec5e63
5 changed files with 177 additions and 12 deletions

View File

@@ -27,7 +27,11 @@ begin
v_total,
v_gic,
v_ger
from ems.vw_economics_daily r
from ems.fn_economics_daily_for_window(
p_site_id,
(p_day::timestamp at time zone 'Europe/Prague'),
((p_day + 1)::timestamp at time zone 'Europe/Prague')
) r
where r.site_id = p_site_id
and r.day_local = p_day;
@@ -71,4 +75,4 @@ end;
$fn$;
comment on function ems.fn_economics_lock_day(int, date) is
'Zamkne den ekonomiky podle aktuálního vw_economics_daily (POST lock).';
'Zamkne den ekonomiky podle fn_economics_daily_for_window (POST lock).';