This commit is contained in:
2025-12-23 03:59:21 +08:00
parent 6c78331d26
commit 1fa5b8b496

View File

@@ -10,7 +10,7 @@ from activities;
select b.action_id, b.action, count(b.action_id)
from activities as a
left join actions as b on a.action_id = b.action_id
where timestamp > EXTRACT(EPOCH FROM current_timestamp(0))::bigint - 86400
where timestamp > EXTRACT(EPOCH FROM current_timestamp(0))::bigint - 86400 * 1
group by b.action_id, b.action
order by count(b.action_id) desc;