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;