From 7ce8f01e880e8063bc6eedbc71641a89a85a0c67 Mon Sep 17 00:00:00 2001 From: Fortern Date: Sat, 23 May 2026 09:33:10 +0800 Subject: [PATCH] prism --- PostgreSQL/prism/prism.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PostgreSQL/prism/prism.sql b/PostgreSQL/prism/prism.sql index f596015..07e7d2b 100644 --- a/PostgreSQL/prism/prism.sql +++ b/PostgreSQL/prism/prism.sql @@ -156,7 +156,7 @@ order by count((world_id, x, y, z)) desc; select world_id, x, y, z, count((world_id, x, y, z)) from activities where action_id = (select action_id from actions where action = 'block-break') - and cause_id is null + and cause_entity_type_id is null and timestamp > EXTRACT(EPOCH FROM current_timestamp(0))::bigint - 86400 * 1 group by world_id, x, y, z order by count((world_id, x, y, z)) desc;