From 6181c4d465d2a75fd7e96fecf7ce3ef35de7eaf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sza=C5=82owski?= Date: Mon, 21 Oct 2024 11:00:56 +0200 Subject: [PATCH] fix: ga epoch boundary for preprod --- govtool/backend/sql/list-proposals.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/govtool/backend/sql/list-proposals.sql b/govtool/backend/sql/list-proposals.sql index b3b836540..a0c333bcf 100644 --- a/govtool/backend/sql/list-proposals.sql +++ b/govtool/backend/sql/list-proposals.sql @@ -54,7 +54,7 @@ SELECT end ) as description, CASE - WHEN meta.network_name::text = 'mainnet' THEN + WHEN meta.network_name::text = 'mainnet' OR meta.network_name::text = 'preprod' THEN latest_epoch.start_time + (gov_action_proposal.expiration - latest_epoch.no)::bigint * INTERVAL '5 days' ELSE latest_epoch.start_time + (gov_action_proposal.expiration - latest_epoch.no)::bigint * INTERVAL '1 day'