fix forecsat accuracy
Some checks failed
CI and deploy / migration-check (push) Failing after 28s
CI and deploy / deploy (push) Has been skipped

This commit is contained in:
Dusan Vojacek
2026-04-29 13:26:00 +02:00
parent 342483b885
commit 2c884e2135

View File

@@ -38,7 +38,8 @@ BEGIN
CASE
WHEN v.exclude_actual_for_learning THEN NULL
WHEN slot.avg_actual_w IS NOT NULL
AND slot.avg_actual_w > 0
AND slot.avg_actual_w >= 50
AND fpi.power_w >= 50
THEN ROUND(
(fpi.power_w::NUMERIC - slot.avg_actual_w::NUMERIC)
/ slot.avg_actual_w::NUMERIC * 100,