Files
radicle-infra/os/host/seed/bootstrap/addresses.sql
T

13 lines
259 B
SQL

select json_object(a1.node, json_group_array (a2.value))
from
addresses a1
inner join addresses a2 using (node)
where
a1.banned = false and
a1.type != 'onion' and
unixepoch() - (a1.last_success / 1000) < (60 * 60 * 24 * 7)
group by a1.node