count logs for drop attribution
All checks were successful
CI / checks (push) Successful in 1m53s

This commit is contained in:
Robin Appelman 2026-11-18 22:44:43 +01:00
commit dc6d09592f
Signed by: robin
SSH key fingerprint: SHA256:kifqgrqnut7q1YUIrI0AdMNC23qiKAS/T9uGFmIYvbE

View file

@ -512,7 +512,8 @@ SELECT
victim,
attacker,
attacker_class,
count(*)
count(*),
count(DISTINCT log_id) AS logs
FROM
kills
WHERE
@ -530,7 +531,8 @@ SELECT
attacker,
victim,
json_objectagg (attacker_class:count) AS by_class,
sum(count)::BIGINT AS total
sum(count)::BIGINT AS total,
sum(logs)::INT AS logs
FROM
grouped_drop_kills
GROUP BY